summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>2008-10-03 17:07:54 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>2008-10-03 17:07:54 +0000
commitd93a541cda90a80d40064aa191ea75d9dfaa921f (patch)
treead0ce2417d6876b6692bfd016324fab013d76170 /sys/arch/amd64
parent9ff34bbd18b384f0c5509461e10798db828a502e (diff)
Make extra cpu's in DDB not spin in tight loop.
Having them 'hlt' is a good thing, especially where thermal management (acpi, etc) is concerned. They wake up lots due to local tick timer anyhow. ok gwk@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/db_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/db_interface.c b/sys/arch/amd64/amd64/db_interface.c
index 6072bd7d5a9..172f5bc5e3c 100644
--- a/sys/arch/amd64/amd64/db_interface.c
+++ b/sys/arch/amd64/amd64/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.13 2007/11/16 16:16:07 deraadt Exp $ */
+/* $OpenBSD: db_interface.c,v 1.14 2008/10/03 17:07:53 weingart Exp $ */
/* $NetBSD: db_interface.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */
/*
@@ -325,7 +325,7 @@ db_enter_ddb(void)
/* Busy wait without locking, we'll confirm with lock later */
while (ddb_active_cpu != cpu_number() &&
curcpu()->ci_ddb_paused != CI_DDB_RUNNING)
- ; /* Do nothing */
+ __asm __volatile ("hlt"); /* Do nothing */
mtx_enter(&ddb_mp_mutex);
}