From 9a1b6b7c8b294a5c483730f1a30d03930c814291 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 1 Sep 2011 08:43:24 +0000 Subject: [PATCH] Minor nit: avoid kpreempt_disable() if cold (as we return early and do not reenable it; actually makes no difference but looks more balanced this way) --- sys/arch/sparc/sparc/timer_sun4m.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc/sparc/timer_sun4m.c b/sys/arch/sparc/sparc/timer_sun4m.c index 68cfcd4913f0..8b0877e9c4e2 100644 --- a/sys/arch/sparc/sparc/timer_sun4m.c +++ b/sys/arch/sparc/sparc/timer_sun4m.c @@ -1,4 +1,4 @@ -/* $NetBSD: timer_sun4m.c,v 1.27 2011/07/17 23:18:23 mrg Exp $ */ +/* $NetBSD: timer_sun4m.c,v 1.28 2011/09/01 08:43:24 martin Exp $ */ /* * Copyright (c) 1992, 1993 @@ -58,7 +58,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: timer_sun4m.c,v 1.27 2011/07/17 23:18:23 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: timer_sun4m.c,v 1.28 2011/09/01 08:43:24 martin Exp $"); #include #include @@ -140,9 +140,9 @@ clockintr_4m(void *cap) * For MP, we defer calling hardclock() to the schedintr so * that we call it on all cpus. */ - kpreempt_disable(); if (cold) return 0; + kpreempt_disable(); /* read the limit register to clear the interrupt */ *((volatile int *)&timerreg4m->t_limit); tickle_tc();