summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios/apm.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-05-03 17:47:21 +0000
committermav <mav@FreeBSD.org>2009-05-03 17:47:21 +0000
commit98565a1214eb4106f0a1b76ff6696b9980497195 (patch)
treece5adc34e083eefdd76b28a61134b800569d7b6e /sys/i386/bios/apm.c
parent77cd1e9862e8b7f432feb7272c92e04d5b0f47fd (diff)
downloadFreeBSD-src-98565a1214eb4106f0a1b76ff6696b9980497195.zip
FreeBSD-src-98565a1214eb4106f0a1b76ff6696b9980497195.tar.gz
Rename statclock_disable variable to atrtcclock_disable that it actually is,
and hide it inside of atrtc driver. Add new tunable hint.atrtc.0.clock controlling it. Setting it to 0 disables using RTC clock as stat-/ profclock sources. Teach i386 and amd64 SMP platforms to emulate stat-/profclocks using i8254 hardclock, when LAPIC and RTC clocks are disabled. This allows to reduce global interrupt rate of idle system down to about 100 interrupts per core, permitting C3 and deeper C-states provide maximum CPU power efficiency.
Diffstat (limited to 'sys/i386/bios/apm.c')
-rw-r--r--sys/i386/bios/apm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index 2ac82c5..0d8532f 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_param.h>
#include <i386/bios/apm.h>
+#include <isa/rtc.h>
/* Used by the apm_saver screen saver module */
int apm_display(int newstate);
@@ -1155,7 +1156,7 @@ apm_attach(device_t dev)
cv_init(&sc->cv, "cbb cv");
if (device_get_flags(dev) & 0x20)
- statclock_disable = 1;
+ atrtcclock_disable = 1;
sc->initialized = 0;
OpenPOWER on IntegriCloud