cpufreq.c from franco