log /sys/kernel/debug/regulator/pm8994_s11/voltage (#20727)

This commit is contained in:
George Hotz
2021-04-22 12:02:12 -07:00
committed by GitHub
parent 5fdcce2551
commit b88aa6b57f
+1
View File
@@ -174,6 +174,7 @@ def thermald_thread():
if EON:
base_path = "/sys/kernel/debug/cpr3-regulator/"
cpr_files = [p for p in Path(base_path).glob("**/*") if p.is_file()]
cpr_files = ["/sys/kernel/debug/regulator/pm8994_s11/voltage"] + cpr_files
cpr_data = {}
for cf in cpr_files:
with open(cf, "r") as f: