Module Name: src Committed By: martin Date: Thu Sep 1 08:43:24 UTC 2011
Modified Files: src/sys/arch/sparc/sparc: timer_sun4m.c Log Message: 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) To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/arch/sparc/sparc/timer_sun4m.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/sparc/timer_sun4m.c diff -u src/sys/arch/sparc/sparc/timer_sun4m.c:1.27 src/sys/arch/sparc/sparc/timer_sun4m.c:1.28 --- src/sys/arch/sparc/sparc/timer_sun4m.c:1.27 Sun Jul 17 23:18:23 2011 +++ src/sys/arch/sparc/sparc/timer_sun4m.c Thu Sep 1 08:43:24 2011 @@ -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 <sys/cdefs.h> -__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 <sys/param.h> #include <sys/kernel.h> @@ -140,9 +140,9 @@ * 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();