Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Minor nit: avoid kpreempt_disable() if ...
details: https://anonhg.NetBSD.org/src/rev/4b5a807be9de
branches: trunk
changeset: 769136:4b5a807be9de
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 01 08:43:24 2011 +0000
description:
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)
diffstat:
sys/arch/sparc/sparc/timer_sun4m.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 83dfe07bfaed -r 4b5a807be9de sys/arch/sparc/sparc/timer_sun4m.c
--- a/sys/arch/sparc/sparc/timer_sun4m.c Thu Sep 01 07:18:50 2011 +0000
+++ b/sys/arch/sparc/sparc/timer_sun4m.c Thu Sep 01 08:43:24 2011 +0000
@@ -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();
Home |
Main Index |
Thread Index |
Old Index