summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-09-14 01:48:01 +0000
committerneel <neel@FreeBSD.org>2010-09-14 01:48:01 +0000
commiteb7e545e67ec1af5b14e3b48d16296b1fa250715 (patch)
tree41c15a39b43d470110e3c8e9420ad055fa70a094 /sys/mips
parent362fdc76797715c62d6ca52e360da11de80f8220 (diff)
downloadFreeBSD-src-eb7e545e67ec1af5b14e3b48d16296b1fa250715.zip
FreeBSD-src-eb7e545e67ec1af5b14e3b48d16296b1fa250715.tar.gz
Port r212559 to mips.
Do not explicitly enable interrupts in smp_init_secondary() because it renders any spinlock protected code after that point to run with interrupts enabled. This is because the processor is executing in the context of idlethread whose 'md_spinlock_count' is already set to 1. Instead just let sched_throw() re-enable interrupts when it releases the spinlock. The original powerpc commit log for r212559 is available here: http://svn.freebsd.org/viewvc/base?view=revision&revision=212559
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/mp_machdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/mips/mips/mp_machdep.c b/sys/mips/mips/mp_machdep.c
index ef2f24c..2b993cb 100644
--- a/sys/mips/mips/mp_machdep.c
+++ b/sys/mips/mips/mp_machdep.c
@@ -310,8 +310,6 @@ smp_init_secondary(u_int32_t cpuid)
while (smp_started == 0)
; /* nothing */
- intr_enable();
-
/* Start per-CPU event timers. */
cpu_initclocks_ap();
OpenPOWER on IntegriCloud