diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-28 16:49:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-28 16:49:31 +0000 |
commit | 054796967aeb3a9bf3775be97331ac163c64d561 (patch) | |
tree | d72c6dcd89ff76dfe5167ab28999bba01c11622e /sys | |
parent | 4e8369711d04972616a280b4f583157058dbbbc1 (diff) |
missing #ifdef MULTIPROCESSOR protection around locking code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mips64/mips64/softintr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/softintr.c b/sys/arch/mips64/mips64/softintr.c index 354480fe936..98f5a0a5cdb 100644 --- a/sys/arch/mips64/mips64/softintr.c +++ b/sys/arch/mips64/mips64/softintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softintr.c,v 1.8 2009/11/26 23:32:46 syuu Exp $ */ +/* $OpenBSD: softintr.c,v 1.9 2009/11/28 16:49:30 miod Exp $ */ /* $NetBSD: softintr.c,v 1.2 2003/07/15 00:24:39 lukem Exp $ */ /* @@ -205,8 +205,10 @@ dosoftint() struct cpu_info *ci = curcpu(); int sir, q, mask; +#ifdef MULTIPROCESSOR if (ci->ci_ipl < IPL_SCHED) __mp_lock(&kernel_lock); +#endif while ((sir = ci->ci_softpending) != 0) { atomic_clearbits_int(&ci->ci_softpending, sir); @@ -218,6 +220,8 @@ dosoftint() } } +#ifdef MULTIPROCESSOR if (ci->ci_ipl < IPL_SCHED) __mp_unlock(&kernel_lock); +#endif } |