summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-04-18 18:54:40 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-04-18 18:54:40 +0000
commitb242afc18e90c681be69e0b15775fcb8cfad2d6d (patch)
treee768e3aca7a4e6f95a1367354782b8aed5e0accf /sys/arch/i386
parent3b2d9a2702d02fd84845fea9208cd1b25bbcff75 (diff)
Halt CPUs upon reboot/halt.
ok krw@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 6fbc22adb49..b939df2139d 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.422 2008/04/12 12:49:28 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.423 2008/04/18 18:54:39 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2405,6 +2405,10 @@ boot(int howto)
haltsys:
doshutdownhooks();
+#ifdef MULTIPROCESSOR
+ i386_broadcast_ipi(I386_IPI_HALT);
+#endif
+
if (howto & RB_HALT) {
#if NACPI > 0 && !defined(SMALL_KERNEL)
extern int acpi_enabled;