summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
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/pc98/cbus
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/pc98/cbus')
-rw-r--r--sys/pc98/cbus/clock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c
index ad613e4..ae686dc 100644
--- a/sys/pc98/cbus/clock.c
+++ b/sys/pc98/cbus/clock.c
@@ -87,7 +87,6 @@ __FBSDID("$FreeBSD$");
#define TIMER_DIV(x) ((i8254_freq + (x) / 2) / (x))
int clkintr_pending;
-int statclock_disable;
#ifndef TIMER_FREQ
#define TIMER_FREQ 2457600
#endif
OpenPOWER on IntegriCloud