Snap for 8485504 from b3a98db247
to tm-release
Change-Id: Icd302af27ec0fc60f5fa4ce14e3e21d027f93d8c
This commit is contained in:
commit
c8a16e6b8e
2 changed files with 8 additions and 5 deletions
|
@ -783,9 +783,9 @@ on property:sys.boot_completed=1
|
|||
write /proc/vendor_sched/pmu_poll_enable 0
|
||||
|
||||
# Setup groups for SF (RT used for SF RE, SF used for SF main)
|
||||
write /proc/vendor_sched/rt_uclamp_min 125
|
||||
write /proc/vendor_sched/rt_uclamp_min 160
|
||||
write /proc/vendor_sched/rt_prefer_idle 1
|
||||
write /proc/vendor_sched/sf_uclamp_min 30
|
||||
write /proc/vendor_sched/sf_uclamp_min 39
|
||||
write /proc/vendor_sched/sf_prefer_idle 1
|
||||
|
||||
# Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%)
|
||||
|
|
|
@ -45,6 +45,7 @@ using aidl::android::hardware::power::stats::PowerStatsEnergyConsumer;
|
|||
constexpr char kBootHwSoCRev[] = "ro.boot.hw.soc.rev";
|
||||
|
||||
void addAoC(std::shared_ptr<PowerStats> p) {
|
||||
static const uint64_t TIMEOUT_MILLIS = 120;
|
||||
std::string prefix = "/sys/devices/platform/19000000.aoc/control/";
|
||||
|
||||
// Add AoC cores (a32, ff1, hf0, and hf1)
|
||||
|
@ -57,7 +58,7 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
|||
std::vector<std::pair<std::string, std::string>> coreStates = {
|
||||
{"DWN", "off"}, {"RET", "retention"}, {"WFI", "wfi"}};
|
||||
p->addStateResidencyDataProvider(std::make_unique<AocStateResidencyDataProvider>(coreIds,
|
||||
coreStates));
|
||||
coreStates, TIMEOUT_MILLIS));
|
||||
|
||||
// Add AoC voltage stats
|
||||
std::vector<std::pair<std::string, std::string>> voltageIds = {
|
||||
|
@ -68,7 +69,8 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
|||
{"UUD", "ultra_underdrive"},
|
||||
{"UD", "underdrive"}};
|
||||
p->addStateResidencyDataProvider(
|
||||
std::make_unique<AocStateResidencyDataProvider>(voltageIds, voltageStates));
|
||||
std::make_unique<AocStateResidencyDataProvider>(voltageIds, voltageStates,
|
||||
TIMEOUT_MILLIS));
|
||||
|
||||
// Add AoC monitor mode
|
||||
std::vector<std::pair<std::string, std::string>> monitorIds = {
|
||||
|
@ -78,7 +80,8 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
|||
{"MON", "mode"},
|
||||
};
|
||||
p->addStateResidencyDataProvider(
|
||||
std::make_unique<AocStateResidencyDataProvider>(monitorIds, monitorStates));
|
||||
std::make_unique<AocStateResidencyDataProvider>(monitorIds, monitorStates,
|
||||
TIMEOUT_MILLIS));
|
||||
|
||||
// Add AoC restart count
|
||||
const GenericStateResidencyDataProvider::StateResidencyConfig restartCountConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue