diff options
author | David <dbphillipsnz@gmail.com> | 2014-07-23 14:17:47 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-07-23 14:17:47 +1200 |
commit | 0c6eed2505e7feb8b006b6140a077b10f0215704 (patch) | |
tree | 6e49b25e9a4886a5c90a7fdb21043b382f70fd7e /getfreq.c | |
parent | 64091a89f410fc46918ee05a0226ccce90559328 (diff) | |
download | paramano-0c6eed2505e7feb8b006b6140a077b10f0215704.tar.xz |
Fixed failure to detect cores without freq scaling
Diffstat (limited to 'getfreq.c')
-rw-r--r-- | getfreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"))) { |