add default cpu.active power consumption

In CpuPowerCalculator it will calculate the power consumption based on
the PowerProfile. But when the device run on the GSI image, the
PowerProfile will not match the specific device's overlay. The default
power_profile.xml which don't have cpu.active will make some
multiple-cluster device have zero CPU power consumption calculation
result. So added the default value for the cpu.active values which
overlay by many devices.
This patch help below cts-on-gsi get pass:
run cts-on-gsi -m CtsStatsdHostTestCases -t
android.cts.statsd.atom.UidAtomTests#testDeviceCalculatedPowerBlameUid
run cts-on-gsi -m CtsStatsdHostTestCases -t
android.cts.statsd.validation.BatteryStatsValidationTests#testPowerBlameUid

TEST:
run cts -m CtsStatsdHostTestCases -t
android.cts.statsd.atom.UidAtomTests#testDeviceCalculatedPowerBlameUid

Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
This commit is contained in:
Haoran.Wang
2019-12-17 15:18:55 +08:00
parent 775540c6d6
commit 1d63546de9

View File

@@ -51,6 +51,12 @@
<value>0.1</value> <!-- ~1mA -->
</array>
<!-- Additional power consumption by CPU excluding cluster and core when
running -->
<array name="cpu.active">
<value>0.1</value>
</array>
<!-- A list of heterogeneous CPU clusters, where the value for each cluster represents the
number of CPU cores for that cluster.