Mike Hearn mike@theoretic.com writes:
ChangeLog:
- Move performance frequency code to misc/cpu.c
- New function, get_cpu_speed()
- Make MHz registry key and QueryPerformanceFrequency use it
I was hoping you would merge the CPU speed detection with the rest of the CPU info code, there's really no reason to parse /proc/cpuinfo twice. Also the value that QueryPerformanceFrequency returns needs to match the behavior of QueryPerformanceCounter, you can't simply divide it by 1000.