summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2009-06-01 22:28:31 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2009-06-01 22:28:31 +0000
commit84a4585a99a34b714ef42ddb2c34438522eb766c (patch)
tree6e065494cca52be07c6816c43224728adc98095d /sys/arch/macppc
parentf4147900052c34e21310d2e37a34f47b26a65aba (diff)
no point in calling curcpu() when ci is already set. ok miod@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/clock.c b/sys/arch/macppc/macppc/clock.c
index 8a7bfb72d8d..353b5427111 100644
--- a/sys/arch/macppc/macppc/clock.c
+++ b/sys/arch/macppc/macppc/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.25 2008/11/21 17:35:52 deraadt Exp $ */
+/* $OpenBSD: clock.c,v 1.26 2009/06/01 22:28:30 drahn Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
@@ -225,7 +225,7 @@ decr_intr(struct clockframe *frame)
*/
ppc_mtdec(nextevent - tb);
- if (curcpu()->ci_cpl & SPL_CLOCK) {
+ if (ci->ci_cpl >= IPL_CLOCK) {
ci->ci_statspending += nstats;
} else {
KERNEL_LOCK();