powerstats: update GPU DVFS for energy consumer

Bug: 254409620
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I5eb81a0def4d16138053d006bb23e20c535b4319
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2022-10-24 17:59:03 +08:00
parent f9213b1d78
commit bb6b69385a

View file

@ -107,7 +107,7 @@ void addUwb(std::shared_ptr<PowerStats> p) {
"/sys/devices/platform/10db0000.spi/spi_master/spi16/spi16.0/uwb/power_stats", cfgs)); "/sys/devices/platform/10db0000.spi/spi_master/spi16/spi16.0/uwb/power_stats", cfgs));
} }
void addGPUGs202(std::shared_ptr<PowerStats> p) { void addGPU(std::shared_ptr<PowerStats> p) {
std::map<std::string, int32_t> stateCoeffs; std::map<std::string, int32_t> stateCoeffs;
// Add GPU state residency // Add GPU state residency
@ -122,11 +122,9 @@ void addGPUGs202(std::shared_ptr<PowerStats> p) {
{"302000", 1308}, {"302000", 1308},
{"351000", 1522}, {"351000", 1522},
{"400000", 1772}, {"400000", 1772},
{"434000", 1931},
{"471000", 2105}, {"471000", 2105},
{"510000", 2292}, {"510000", 2292},
{"572000", 2528}, {"572000", 2528},
{"633000", 2811},
{"701000", 3127}, {"701000", 3127},
{"762000", 3452}, {"762000", 3452},
{"848000", 4044}}; {"848000", 4044}};
@ -164,7 +162,7 @@ int main() {
addUwb(p); addUwb(p);
addPowerDomains(p); addPowerDomains(p);
addDevfreq(p); addDevfreq(p);
addGPUGs202(p); addGPU(p);
addDvfsStats(p); addDvfsStats(p);
const std::string instance = std::string() + PowerStats::descriptor + "/default"; const std::string instance = std::string() + PowerStats::descriptor + "/default";