summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmisc/pelt_walt.sh12
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
}