Snap for 9576141 from d094ba620f0fb5e2842c03ae2df1eee6664845f3 to udc-release
Change-Id: I1ce4536d73517f8f977bc5728760c485badc330d
This commit is contained in:
commit
d925691928
@ -21,3 +21,6 @@ allow battery_mitigation sysfs_bcl:lnk_file r_file_perms;
|
||||
allow battery_mitigation sysfs_thermal:lnk_file r_file_perms;
|
||||
allow battery_mitigation mitigation_vendor_data_file:dir rw_dir_perms;
|
||||
allow battery_mitigation mitigation_vendor_data_file:file create_file_perms;
|
||||
|
||||
# Allow battery_mitigation to use Binder IPC so that service manager can notify it for callbacks
|
||||
binder_use(battery_mitigation)
|
@ -1,4 +1,6 @@
|
||||
#vendor-metrics
|
||||
genfscon sysfs /kernel/metrics/resume_latency/resume_latency_metrics u:object_r:sysfs_vendor_metrics:s0
|
||||
genfscon sysfs /kernel/metrics/irq/long_irq_metrics u:object_r:sysfs_vendor_metrics:s0
|
||||
genfscon sysfs /kernel/metrics/temp_residency/temp_residency_all/stats u:object_r:sysfs_vendor_metrics:s0
|
||||
|
||||
genfscon sysfs /kernel/metrics/thermal/tr_by_group/tmu/stats u:object_r:sysfs_vendor_metrics:s0
|
||||
genfscon sysfs /kernel/metrics/thermal/tr_by_group/spmic/stats u:object_r:sysfs_vendor_metrics:s0
|
||||
|
@ -100,10 +100,13 @@ bool CpupmStateResidencyDataProvider::getStateResidencies(
|
||||
stateId = temp;
|
||||
}
|
||||
|
||||
if (stateId >= 0) {
|
||||
entityIndex = matchEntity(line);
|
||||
it = residencies->find(mConfig.entities[entityIndex].first);
|
||||
if (stateId < 0) continue;
|
||||
|
||||
entityIndex = matchEntity(line);
|
||||
|
||||
if (entityIndex < 0) continue;
|
||||
|
||||
it = residencies->find(mConfig.entities[entityIndex].first);
|
||||
if (it != residencies->end()) {
|
||||
if (parseState(line, &duration, &count)) {
|
||||
it->second[stateId].totalTimeInStateMs = duration / US_TO_MS;
|
||||
@ -115,7 +118,6 @@ bool CpupmStateResidencyDataProvider::getStateResidencies(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(line);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user