summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lakshman Annadorai <lakshmana@google.com> 2022-11-22 11:57:20 -0800
committer Lakshman Annadorai <lakshmana@google.com> 2022-12-15 21:47:25 +0000
commitcc844ea5c383ba95f27717128114ee527e9e2b97 (patch)
treed562718280ce849474a98b248c0606eade52d21d /libs/androidfw/StringPool.cpp
parentf1707975d41a45a59031edc8167874857bcbd75f (diff)
Report CPU online status & avg time in state freq.
- CpuInfoReader must verify all frequency policy directories for the presence of time_in_state file before marking it as missing because this file might be missing when all cores on a policy are offline. Thus, check all policies. - Split the CPU info cache into static and dynamic CPU info stats. This helps preseves all the information read from the sysfs interface. With the previous implementation, some critical information required to make certain decision (later in the implementation) were lost. - For instance, the related & affected CPU cores information are required to decide whether a CPU core is online or offline. - The current & max CPU frequency should come from the same source - either both from the frequency reported by the CPU hardware or the frequency determined by the scaling governor. - Handle the case where a CPU core is offline and the latest CPU usage stats are missing. This will be useful when collection bugreport dump. - Fix the return types to avoid boxing/unboxing ints/longs. Test: atest CpuInfoReaderTest Bug: 242722241 Change-Id: I5c51ac8b699ffe616b64de279ebab12968723160
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions