summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clocksource.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2011-05-13 12:39:37 +0000
committermav <mav@FreeBSD.org>2011-05-13 12:39:37 +0000
commit1881f29e6e8207fb99d0860d582c91e714f12a95 (patch)
tree8281c60b958f7d6ebfdb7b2134c07e51e43407b7 /sys/kern/kern_clocksource.c
parent78eaf5d43193075e2a63856e4329c0383e0eab02 (diff)
downloadFreeBSD-src-1881f29e6e8207fb99d0860d582c91e714f12a95.zip
FreeBSD-src-1881f29e6e8207fb99d0860d582c91e714f12a95.tar.gz
Refactor Xen PV code to use new event timers subsystem. That uses one-shot
Xen timer and time counter to provide one-shot and periodic time events. On my tests this reduces idle interruts rate down to about 30Hz, and accor- ding to Xen VM Manager reduces host CPU load by three times comparing to the previous periodic 100Hz clock. Also now, when needed, it is possible to increase HZ rate without useless CPU burning during idle periods. Now only ia64 and some ARMs left not migrated to the new event timers.
Diffstat (limited to 'sys/kern/kern_clocksource.c')
-rw-r--r--sys/kern/kern_clocksource.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/kern_clocksource.c b/sys/kern/kern_clocksource.c
index d55d85c..604bd2d 100644
--- a/sys/kern/kern_clocksource.c
+++ b/sys/kern/kern_clocksource.c
@@ -31,9 +31,6 @@ __FBSDID("$FreeBSD$");
* Common routines to manage event timers hardware.
*/
-/* XEN has own timer routines now. */
-#ifndef XEN
-
#include "opt_device_polling.h"
#include "opt_kdtrace.h"
@@ -899,5 +896,3 @@ sysctl_kern_eventtimer_periodic(SYSCTL_HANDLER_ARGS)
SYSCTL_PROC(_kern_eventtimer, OID_AUTO, periodic,
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
0, 0, sysctl_kern_eventtimer_periodic, "I", "Enable event timer periodic mode");
-
-#endif
OpenPOWER on IntegriCloud