Snap for 8385883 from 2dc3c4cb18
to tm-release
Change-Id: Ibed496a10fcf7cd02a916b5418065fbe45a45967
This commit is contained in:
commit
ccd266288a
3 changed files with 10 additions and 6 deletions
|
@ -727,6 +727,7 @@ on property:sys.boot_completed=1
|
|||
setprop vendor.powerhal.init 1
|
||||
|
||||
# Setup final cpu.uclamp
|
||||
write /proc/vendor_sched/uclamp_threshold 8
|
||||
write /proc/vendor_sched/ta_uclamp_min 1
|
||||
write /proc/vendor_sched/fg_uclamp_min 0
|
||||
write /proc/vendor_sched/sys_prefer_idle 0
|
||||
|
|
|
@ -1042,9 +1042,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
|||
ro.audio.monitorRotation = true \
|
||||
ro.audio.offload_wakelock=false
|
||||
|
||||
# declare use of spatial audio
|
||||
# PRODUCT_PROPERTY_OVERRIDES += \
|
||||
# ro.audio.spatializer_enabled=true
|
||||
# DO NOT SUBMIT declare use of spatial audio
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.audio.spatializer_enabled=true
|
||||
|
||||
ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
|
||||
# IAudioMetricExt HIDL
|
||||
|
|
|
@ -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