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. --- ChangeLog | 7 +++++++ bogus/power_save.h | 2 +- i386/i386at/model_dep.c | 9 +++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d4a3a7..ae59608 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. + 2002-05-22 Roland McGrath * configure.in (VERSION): New substituted variable: set to 1.3 now. diff --git a/bogus/power_save.h b/bogus/power_save.h index 5591def..ee9a520 100644 --- a/bogus/power_save.h +++ b/bogus/power_save.h @@ -1 +1 @@ -#define POWER_SAVE 0 +#define POWER_SAVE 1 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