powerstats: update GPU DVFS to fix GPU EnergyConsumer issue

Failed to create GPU EnergyConsumer due to invalid coefficient
size. The size of GPU coefficient list should be equal to the
size of available GPU DVFS list in uid_time_in_state.

Bug: 243455584
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I7938e3e89d8e1e9a43c49cff60249a723f76b969
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2022-10-12 17:54:20 +08:00
parent e3abb196ec
commit 8112355636

View file

@ -318,7 +318,6 @@ void addGPU(std::shared_ptr<PowerStats> p) {
// TODO (b/197721618): Measuring the GPU power numbers
stateCoeffs = {
{"151000", 642},
{"202000", 890},
{"251000", 1102},
{"302000", 1308},
@ -614,10 +613,6 @@ void addCommonDataProviders(std::shared_ptr<PowerStats> p) {
addPowerDomains(p);
addDevfreq(p);
addTPU(p);
// TODO (b/181070764) (b/182941084):
// Remove this when Wifi/BT energy consumption models are available or revert before ship
addPlaceholderEnergyConsumers(p);
}
void addGs201CommonDataProviders(std::shared_ptr<PowerStats> p) {