From 9211d28e63cae8f9b282c1e00dc6ff88935d94ca Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Tue, 16 Jan 2018 13:01:08 +0530 Subject: updates Signed-off-by: Viresh Kumar --- misc/pelt_walt.sh | 12 +++--------- 1 file 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 } -- cgit v1.2.3