]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use cpu_ticks() for get_cyclecount(9) rather than checking existence of TSC
authorJung-uk Kim <jkim@FreeBSD.org>
Mon, 4 Apr 2011 22:56:33 +0000 (22:56 +0000)
committerJung-uk Kim <jkim@FreeBSD.org>
Mon, 4 Apr 2011 22:56:33 +0000 (22:56 +0000)
commit57af65d40189969951496fa32d4ac7606910e6c3
tree3ad6a4ee77851aac3d1fc8796012417290a3a95a
parent1b53e47cdea6e4c1a9bcec260faa726e7cc6363c
Use cpu_ticks() for get_cyclecount(9) rather than checking existence of TSC
at run-time on i386.  cpu_ticks() is set to use RDTSC early enough on i386
where it is available.  Otherwise, cpu_ticks() is driven by the current
timecounter hardware as binuptime(9) does.  This also avoids unnecessary
namespace pollution from <machine/cputypes.h>.
sys/i386/include/cpu.h