diff options
author | phk <phk@FreeBSD.org> | 1996-09-19 08:28:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-09-19 08:28:16 +0000 |
commit | b0cf7bf4f22429984524df30a6432b4fc1be9ca7 (patch) | |
tree | 5d02d08bad201628248e055c0427e2ebef705af5 /sys/amd64 | |
parent | f9bd907a44f1cde3b84ebb5d8383cfbe8f954842 (diff) | |
download | FreeBSD-src-b0cf7bf4f22429984524df30a6432b4fc1be9ca7.zip FreeBSD-src-b0cf7bf4f22429984524df30a6432b4fc1be9ca7.tar.gz |
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...
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 4 | ||||
-rw-r--r-- | sys/amd64/amd64/swtch.s | 4 |
2 files changed, 4 insertions, 4 deletions
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 |