From 17586b1af89fe733419970eee9eb86bb0ce6c5e2 Mon Sep 17 00:00:00 2001 From: Attilio Rao Date: Fri, 9 Apr 2010 14:22:09 +0000 Subject: [PATCH] Default the machdep.lapic_allclocks to be enabled in order to cope with broken atrtc. Now if you want more correct stats on profhz and stathz it may be disabled by setting to 0. Reported by: A. Akephalos , Jakub Lach MFC: 1 week --- sys/pc98/cbus/clock.c | 2 +- sys/x86/isa/clock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index 22ed8a5f5c9..3028c074d15 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.c @@ -93,7 +93,7 @@ TUNABLE_INT("hw.i8254.freq", &i8254_freq); int i8254_max_count; static int i8254_real_max_count; -static int lapic_allclocks; +static int lapic_allclocks = 1; TUNABLE_INT("machdep.lapic_allclocks", &lapic_allclocks); static struct mtx clock_lock; diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c index 4a207090d62..83026d6c258 100644 --- a/sys/x86/isa/clock.c +++ b/sys/x86/isa/clock.c @@ -97,7 +97,7 @@ TUNABLE_INT("hw.i8254.freq", &i8254_freq); int i8254_max_count; static int i8254_real_max_count; -static int lapic_allclocks; +static int lapic_allclocks = 1; TUNABLE_INT("machdep.lapic_allclocks", &lapic_allclocks); struct mtx clock_lock;