Subject: CVS commit: [netbsd-2] src/sys/arch/i386/i386
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <firstname.lastname@example.org>
Date: 08/07/2005 15:33:32
Module Name: src
Committed By: riz
Date: Sun Aug 7 15:33:32 UTC 2005
src/sys/arch/i386/i386 [netbsd-2]: cpu.c
Pull up revision 1.23 (requested by reed in ticket #5551):
microtime_func = cc_microtime;
to a point after the CPU-specific setup routine is called because some of them
"turn off" the TSC because it's broken on those platforms, or not suitable
for use as an interval timer.
One such platform is the Cyrix/NSC Geode processor; when powersave mode is
enabled, the "hlt" instruction stops the TSC too. It continues to be perfectly
reasonable for program profiling as a cycle counter in this mode, but it is
unsuitable for interval time keeping (time doesn't stop just because you're
asleep or napping), and, for now, we don't have a separate flag to make this
distinction - we just test for the presence of TSC to enable cc_microtime().
To generate a diff of this commit:
cvs rdiff -r1.18 -r220.127.116.11 src/sys/arch/i386/i386/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.