Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-3] src/sys/arch/i386/i386



Module Name:    src
Committed By:   riz
Date:           Mon Jul 18 20:48:58 UTC 2005

Modified Files:
        src/sys/arch/i386/i386 [netbsd-3]: identcpu.c

Log Message:
Pull up revision 1.20 (requested by fair in ticket #562):
move
        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.17.2.1 -r1.17.2.2 src/sys/arch/i386/i386/identcpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index