svn commit: r206421 - in head/sys: pc98/cbus x86/isa

Attilio Rao attilio at FreeBSD.org
Fri Apr 9 14:22:10 UTC 2010


Author: attilio
Date: Fri Apr  9 14:22:09 2010
New Revision: 206421
URL: http://svn.freebsd.org/changeset/base/206421

Log:
  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 <akephalos dot akephalos at gmail dot com>,
  		Jakub Lach <jakub_lach at mailplus dot pl>
  MFC:		1 week

Modified:
  head/sys/pc98/cbus/clock.c
  head/sys/x86/isa/clock.c

Modified: head/sys/pc98/cbus/clock.c
==============================================================================
--- head/sys/pc98/cbus/clock.c	Fri Apr  9 13:58:54 2010	(r206420)
+++ head/sys/pc98/cbus/clock.c	Fri Apr  9 14:22:09 2010	(r206421)
@@ -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;

Modified: head/sys/x86/isa/clock.c
==============================================================================
--- head/sys/x86/isa/clock.c	Fri Apr  9 13:58:54 2010	(r206420)
+++ head/sys/x86/isa/clock.c	Fri Apr  9 14:22:09 2010	(r206421)
@@ -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;


More information about the svn-src-all mailing list