summaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-05-23 01:54:57 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-05-23 01:54:57 +0000
commitc669ea1b0523f383cdf2a76dec9f16c7d32947a6 (patch)
tree78ca56ea8557324a492928f798da1c989bf76f6c /i386/i386at/model_dep.c
parent0524a2ce15a95c81d0dec153f10211b5e59481cd (diff)
2002-05-23 Marcus Brinkmann <marcus@gnu.org>
* i386/i386at/model_dep.c: Include <kern/cpu_number.h> and <kern/assert.h>. (machine_idle): New function. * bogus/power_save.h (POWER_SAVE): Define to 1.
Diffstat (limited to 'i386/i386at/model_dep.c')
-rw-r--r--i386/i386at/model_dep.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index b3fca62..02e5b2e 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -42,6 +42,8 @@
#include "vm_param.h"
#include <kern/time_out.h>
+#include <kern/assert.h>
+#include <kern/cpu_number.h>
#include <sys/time.h>
#include <vm/vm_page.h>
#include <i386/machspl.h>
@@ -156,6 +158,13 @@ void machine_init()
pmap_unmap_page_zero();
}
+/* Conserve power on processor CPU. */
+void machine_idle (int cpu)
+{
+ assert (cpu == cpu_number ());
+ asm volatile ("hlt" : : : "memory");
+}
+
/*
* Halt a cpu.
*/