From a0d65585015ca95a14fb319397fcf2bdab1440c4 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 23 Jul 2014 14:29:10 +1200 Subject: Fixed the fix --- getfreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'getfreq.c') diff --git a/getfreq.c b/getfreq.c index e0a7286..6661a6e 100644 --- a/getfreq.c +++ b/getfreq.c @@ -45,7 +45,7 @@ void gf_init() // Get available governor freqs. If no governor, try next cpu if (gf_available(i, freq_string, sizeof(freq_string) ) == -1) { - debug("Couldn't find gov on core %d\n",i); + debug("Couldn't find freq scaling on core %d\n",i); continue; } @@ -77,7 +77,7 @@ int gf_current(int core) char path[80]; int freq; - sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_cur_freq", core); + sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", core); if(!(fd = fopen(path, "r"))) { -- cgit v1.1