aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-07-23 14:17:47 +1200
committerDavid <dbphillipsnz@gmail.com>2014-07-23 14:17:47 +1200
commitd933facf6eed60952193b4eec88cac306ba87a78 (patch)
tree6e49b25e9a4886a5c90a7fdb21043b382f70fd7e
parentff7fb8228934bcecbe93f0ce5b15dd032d0b286b (diff)
downloadparamano-d933facf6eed60952193b4eec88cac306ba87a78.tar.xz
Fixed failure to detect cores without freq scaling
-rw-r--r--getfreq.c2
1 files changed, 1 insertions, 1 deletions
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")))
{