summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTakuya ASADA <syuu@cvs.openbsd.org>2009-11-22 22:15:26 +0000
committerTakuya ASADA <syuu@cvs.openbsd.org>2009-11-22 22:15:26 +0000
commit46af5ebd9e7964483c88442b62909401ad1be3be (patch)
treeda8f8827b8953cd9a4261ffe34258b9176fe3366 /sys/arch
parentfa9e40e31ef68b6a73add4343a794fc010da770a (diff)
removing unnecessary locks.
ok jsing@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mips64/mips64/clock.c10
-rw-r--r--sys/arch/mips64/mips64/softintr.c4
2 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/mips64/mips64/clock.c b/sys/arch/mips64/mips64/clock.c
index f4677a2db3b..91c405be630 100644
--- a/sys/arch/mips64/mips64/clock.c
+++ b/sys/arch/mips64/mips64/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.28 2009/11/22 18:33:48 syuu Exp $ */
+/* $OpenBSD: clock.c,v 1.29 2009/11/22 22:15:25 syuu Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -158,19 +158,11 @@ clock_int5(uint32_t mask, struct trap_frame *tf)
* Process clock interrupt unless it is currently masked.
*/
if (tf->ipl < IPL_CLOCK) {
-#ifdef MULTIPROCESSOR
- if (ci->ci_ipl < IPL_SCHED)
- __mp_lock(&kernel_lock);
-#endif
while (ci->ci_pendingticks) {
clk_count.ec_count++;
hardclock(tf);
ci->ci_pendingticks--;
}
-#ifdef MULTIPROCESSOR
- if (ci->ci_ipl < IPL_SCHED)
- __mp_unlock(&kernel_lock);
-#endif
}
return CR_INT_5; /* Clock is always on 5 */
diff --git a/sys/arch/mips64/mips64/softintr.c b/sys/arch/mips64/mips64/softintr.c
index d3401c4e219..c9244cf76e8 100644
--- a/sys/arch/mips64/mips64/softintr.c
+++ b/sys/arch/mips64/mips64/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.6 2009/11/21 23:28:14 syuu Exp $ */
+/* $OpenBSD: softintr.c,v 1.7 2009/11/22 22:15:25 syuu Exp $ */
/* $NetBSD: softintr.c,v 1.2 2003/07/15 00:24:39 lukem Exp $ */
/*
@@ -100,9 +100,7 @@ softintr_dispatch(int si)
mtx_leave(&siq->siq_mtx);
- KERNEL_LOCK();
(*sih->sih_func)(sih->sih_arg);
- KERNEL_UNLOCK();
}
}