From b0cf7bf4f22429984524df30a6432b4fc1be9ca7 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 19 Sep 1996 08:28:16 +0000 Subject: Add APM_IDLE_CPU option, that is off by default. I maintain that it saves more power to simply "hlt" the CPU than to spend tons of time trying to tell the APM bios to do the same. In particular if you do it 100 times a second... --- sys/amd64/amd64/cpu_switch.S | 4 ++-- sys/amd64/amd64/swtch.s | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/amd64') diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index daedb20..3e98862 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.38 1996/07/31 09:25:53 davidg Exp $ + * $Id: swtch.s,v 1.39 1996/07/31 12:36:11 bde Exp $ */ #include "apm.h" @@ -263,7 +263,7 @@ idle_loop: testl %eax, %eax jnz idle_loop sti -#if NAPM > 0 +#if NAPM > 0 && defined(APM_IDLE_CPU) call _apm_cpu_idle call _apm_cpu_busy #else diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index daedb20..3e98862 100644 --- a/sys/amd64/amd64/swtch.s +++ b/sys/amd64/amd64/swtch.s @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.38 1996/07/31 09:25:53 davidg Exp $ + * $Id: swtch.s,v 1.39 1996/07/31 12:36:11 bde Exp $ */ #include "apm.h" @@ -263,7 +263,7 @@ idle_loop: testl %eax, %eax jnz idle_loop sti -#if NAPM > 0 +#if NAPM > 0 && defined(APM_IDLE_CPU) call _apm_cpu_idle call _apm_cpu_busy #else -- cgit v1.1