From d933facf6eed60952193b4eec88cac306ba87a78 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 23 Jul 2014 14:17:47 +1200 Subject: Fixed failure to detect cores without freq scaling --- getfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'getfreq.c') diff --git a/getfreq.c b/getfreq.c index e94bf8c..e0a7286 100644 --- a/getfreq.c +++ b/getfreq.c @@ -77,7 +77,7 @@ int gf_current(int core) char path[80]; int freq; - sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", core); + sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_cur_freq", core); if(!(fd = fopen(path, "r"))) { -- cgit v1.1