thermal: Update path reading for temperature residency metrics

Add temperature residency reset path
chown to system to reset from pixelstats

Bug: 193833982
Test: Local build and verify atom logs
Change-Id: I272b1f52243dcb91d4d6dd142c54edf533f6498c
This commit is contained in:
sashwinbalaji 2023-05-05 10:13:34 +08:00 committed by TreeHugger Robot
parent b67c8e1423
commit 9ad2131f09
2 changed files with 10 additions and 1 deletions

View file

@ -929,6 +929,9 @@ on post-fs-data
on post-fs-data
mkdir /data/vendor/powerstats 0771 system system
chown system system /data/vendor/powerstats
# Thermal Residency Stats (write 1 to reset)
chown system system /sys/kernel/metrics/thermal/tr_by_group/tmu/stats_reset
chown system system /sys/kernel/metrics/thermal/tr_by_group/spmic/stats_reset
on property:vendor.brownout.mitigation.ready=1
# BCL

View file

@ -68,9 +68,15 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
"/sys/devices/platform/100b0000.AUR/trip_counter",
},
.CCARatePath = "/sys/devices/platform/audiometrics/cca_rate_read_once",
.TempResidencyPaths = {
.TempResidencyAndResetPaths = {
{
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats",
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats_reset"
},
{
"/sys/kernel/metrics/thermal/tr_by_group/spmic/stats",
"/sys/kernel/metrics/thermal/tr_by_group/spmic/stats_reset"
}
},
.ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics",
.LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics",