Snap for 8362632 from 10e96ef8d5
to tm-release
Change-Id: I4e8023ccc0feff2d7f8bcb3993ff64e9e9fc7f2f
This commit is contained in:
commit
d4f62c8c33
2 changed files with 17 additions and 1 deletions
|
@ -996,7 +996,6 @@ PRODUCT_PACKAGES += \
|
|||
audio_spk_35l41 \
|
||||
audio.usb.default \
|
||||
audio.usbv2.default \
|
||||
audio.a2dp.default \
|
||||
audio.bluetooth.default \
|
||||
audio.r_submix.default \
|
||||
libamcsextfile \
|
||||
|
|
|
@ -79,6 +79,23 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
|||
};
|
||||
p->addStateResidencyDataProvider(
|
||||
std::make_unique<AocStateResidencyDataProvider>(monitorIds, monitorStates));
|
||||
|
||||
// Add AoC restart count
|
||||
const GenericStateResidencyDataProvider::StateResidencyConfig restartCountConfig = {
|
||||
.entryCountSupported = true,
|
||||
.entryCountPrefix = "",
|
||||
.totalTimeSupported = false,
|
||||
.lastEntrySupported = false,
|
||||
};
|
||||
const std::vector<std::pair<std::string, std::string>> restartCountHeaders = {
|
||||
std::make_pair("RESTART", ""),
|
||||
};
|
||||
std::vector<GenericStateResidencyDataProvider::PowerEntityConfig> cfgs;
|
||||
cfgs.emplace_back(
|
||||
generateGenericStateResidencyConfigs(restartCountConfig, restartCountHeaders),
|
||||
"AoC-Count", "");
|
||||
p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>(
|
||||
"/sys/devices/platform/19000000.aoc/restart_count", cfgs));
|
||||
}
|
||||
|
||||
void addDvfsStats(std::shared_ptr<PowerStats> p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue