summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTakuya ASADA <syuu@cvs.openbsd.org>2009-11-22 00:31:04 +0000
committerTakuya ASADA <syuu@cvs.openbsd.org>2009-11-22 00:31:04 +0000
commit80f574b976d71bef7c21cf88aa5222cfca5312d6 (patch)
tree201710eadd945589dddb835d8f8dabf0315b30f5 /sys/arch
parentf1781f95a73499486f36711fc1a89ff2e9736432 (diff)
Fix compile error in uniprocessor kernel.
ok jsing@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mips64/mips64/interrupt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c
index 43b6712201e..5f6717b34e1 100644
--- a/sys/arch/mips64/mips64/interrupt.c
+++ b/sys/arch/mips64/mips64/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.52 2009/11/22 00:19:49 syuu Exp $ */
+/* $OpenBSD: interrupt.c,v 1.53 2009/11/22 00:31:03 syuu Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -115,8 +115,10 @@ interrupt(struct trap_frame *trapframe)
trapdebug_enter(trapframe, 0);
#endif
+#ifdef MULTIPROCESSOR
if (ci->ci_ipl < IPL_SCHED)
__mp_lock(&kernel_lock);
+#endif
uvmexp.intrs++;
@@ -151,8 +153,10 @@ interrupt(struct trap_frame *trapframe)
__asm__ ("sync\n\t.set reorder\n");
}
+#ifdef MULTIPROCESSOR
if (ci->ci_ipl < IPL_SCHED)
__mp_unlock(&kernel_lock);
+#endif
}