From c669ea1b0523f383cdf2a76dec9f16c7d32947a6 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 23 May 2002 01:54:57 +0000 Subject: 2002-05-23 Marcus Brinkmann * i386/i386at/model_dep.c: Include and . (machine_idle): New function. * bogus/power_save.h (POWER_SAVE): Define to 1. --- i386/i386at/model_dep.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'i386') 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 +#include +#include #include #include #include @@ -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. */ -- cgit v1.2.3