dumpstate: dump state2power table am: bac5bc98ae am: e2ec28f639 am: ac51ae88a1

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15151834

Change-Id: Ibc8cd158fa8ea652ac115971c278fd463766c27c
This commit is contained in:
David Chao 2021-07-29 08:08:43 +00:00 committed by Automerger Merge Worker
commit 4323d3e537

View file

@ -470,6 +470,10 @@ void DumpstateDevice::dumpThermalSection(int fd) {
"for f in /sys/class/thermal/cooling* ; do " "for f in /sys/class/thermal/cooling* ; do "
"type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; " "type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; "
"done"}); "done"});
RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c",
"for f in /sys/class/thermal/cooling* ; do "
"type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; "
"done"});
} }
// Dump items related to touch // Dump items related to touch