aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-07-23 14:29:10 +1200
committerDavid <dbphillipsnz@gmail.com>2014-07-23 14:29:10 +1200
commitf041e2adac49f11f1f17ca7f172a79b9f71d52ea (patch)
tree872a92d99bf0bfcc849f2713a4e0aeecaa4e1b30
parentd933facf6eed60952193b4eec88cac306ba87a78 (diff)
downloadparamano-f041e2adac49f11f1f17ca7f172a79b9f71d52ea.tar.xz
Fixed the fix
-rw-r--r--getcore.c2
-rw-r--r--getfreq.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/getcore.c b/getcore.c
index 7ef5c91..23bf946 100644
--- a/getcore.c
+++ b/getcore.c
@@ -37,7 +37,7 @@ bool core_exists(unsigned int core)
char corestr[4];
sprintf(corestr, "%d", core);
- sprintf(path, "/sys/devices/system/cpu/cpu%s/cpufreq/scaling_cur_freq", corestr);
+ sprintf(path, "/sys/devices/system/cpu/cpu%s/cpufreq/cpuinfo_cur_freq", corestr);
debug("Checking if core %d exists by opening '%s'\n",core,path);
return (gboolean)(fd = fopen(path, "r"));
}
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")))
{