summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-08-24 00:16:43 +0000
committerpeter <peter@FreeBSD.org>2004-08-24 00:16:43 +0000
commit878672b652111d9a8df706976942ed062adad67e (patch)
treeeeb58eb912b47471b4e3a387868701f6222a1f58
parentf0aa809d4494f811a9973378c9b4cf3c477f8979 (diff)
downloadFreeBSD-src-878672b652111d9a8df706976942ed062adad67e.zip
FreeBSD-src-878672b652111d9a8df706976942ed062adad67e.tar.gz
Oops, I forgot to have the idle loop call mp_grab_cpu_hlt() on the amd64
SMP case.
-rw-r--r--sys/amd64/amd64/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 3ec46a0..ded77f2 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -498,6 +498,10 @@ void
cpu_idle(void)
{
+#ifdef SMP
+ if (mp_grab_cpu_hlt())
+ return;
+#endif
if (cpu_idle_hlt) {
disable_intr();
if (sched_runnable())
OpenPOWER on IntegriCloud