diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-01-16 13:01:08 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-01-16 13:01:08 +0530 |
commit | 9211d28e63cae8f9b282c1e00dc6ff88935d94ca (patch) | |
tree | 1f3f144a87991dbc5072758fd29b1e1e1d29533b | |
parent | 2bb6753ed13fd12cb7aec17ac0bc29e406960b36 (diff) |
updates
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-x | misc/pelt_walt.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/misc/pelt_walt.sh b/misc/pelt_walt.sh index 335b639..a0884b8 100755 --- a/misc/pelt_walt.sh +++ b/misc/pelt_walt.sh @@ -27,9 +27,9 @@ get_cpufreq_stats() reset_thermal_stats() { - for device in /sys/kernel/debug/thermal/cooling*; + for device in /sys/class/thermal/cooling*; do - echo 1 > $device/reset + echo 1 > $device/stats/reset done } @@ -41,13 +41,7 @@ get_thermal_stats() do grep . $device/* >> $path echo "" >> $path - done - - for device in /sys/kernel/debug/thermal/cooling*; - do - grep . $device/* >> $path - echo "" >> $path - grep . $device/*/* >> $path + grep . $device/stats/* >> $path echo "" >> $path done } |