From 4ed3c2fb256a9887af7bb1208dc822ab3606b208 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Thu, 12 Sep 2024 12:18:59 -0700 Subject: [PATCH 1/3] zuma: avoid vector std::vector uses std::allocator, which is an undocumented libc++ extension to the C++ standard library. The extension was removed in llvm.org/PR96319. Use an ordinary non-const T instead. Bug: http://b/349681543 Test: m android.hardware.power.stats-impl.zuma Flag: EXEMPT, refactor to fix build failure Change-Id: I47d0b3a441ab4ec8dd2ad8e794ae84f184d0d40f --- powerstats/ZumaCommonDataProviders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerstats/ZumaCommonDataProviders.cpp b/powerstats/ZumaCommonDataProviders.cpp index 4b2fef97..e70ffaec 100644 --- a/powerstats/ZumaCommonDataProviders.cpp +++ b/powerstats/ZumaCommonDataProviders.cpp @@ -282,7 +282,7 @@ void addSoC(std::shared_ptr p) { } void setEnergyMeter(std::shared_ptr p) { - std::vector deviceNames { "s2mpg14-odpm", "s2mpg15-odpm" }; + std::vector deviceNames { "s2mpg14-odpm", "s2mpg15-odpm" }; p->setEnergyMeterDataProvider(std::make_unique(deviceNames, true)); } From f42925e978e980c71be182906bf5927d5017aa75 Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Fri, 28 Jun 2024 01:36:40 +0000 Subject: [PATCH 2/3] Add input event profile to mitigate input latency of input threads Bug: 347122505 Test: check the priority and latency of input thread in Perffeto Flag: NONE early device setting updates Change-Id: I3977722564241817575d94b2d2023eac6939ce1c --- conf/init.zuma.rc | 4 ++++ task_profiles.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 53475c33..4bb5a1d8 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -44,6 +44,8 @@ on init chown system system /proc/vendor_sched/prefer_idle_clear chown system system /proc/vendor_sched/pmu_poll_enable chown system system /proc/vendor_sched/pmu_poll_time + chown system system /proc/vendor_sched/uclamp_fork_reset_clear + chown system system /proc/vendor_sched/uclamp_fork_reset_set chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/limit_frequency @@ -95,6 +97,8 @@ on init chmod 0220 /proc/vendor_sched/prefer_idle_clear chmod 0660 /proc/vendor_sched/pmu_poll_enable chmod 0220 /proc/vendor_sched/pmu_poll_time + chmod 0220 /proc/vendor_sched/uclamp_fork_reset_clear + chmod 0220 /proc/vendor_sched/uclamp_fork_reset_set start vendor.keymaster-4-0 diff --git a/task_profiles.json b/task_profiles.json index fda6c3ea..81e5e41f 100644 --- a/task_profiles.json +++ b/task_profiles.json @@ -288,6 +288,10 @@ { "Name": "OtaProfiles", "Profiles": [ "OtaPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ] + }, + { + "Name": "InputPolicy", + "Profiles": [ "ResetUclampGrp" ] } ] } From 48f1c2182c6b75fd6fb7a3d68f5dd2835015ea5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kosi=C5=84ski?= Date: Fri, 20 Sep 2024 19:19:37 +0000 Subject: [PATCH 3/3] Delete TARGET_CPU_VARIANT_RUNTIME. This variable only does something when it differs from TARGET_CPU_VARIANT. Setting it to the same values doesn't do anything. Bug: 368635026 Test: presubmit Change-Id: I1e16c5b9244eca4d69909bb1caefebfc17e54a70 --- BoardConfig-common.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index 8d5f8242..3451d397 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -27,7 +27,6 @@ TARGET_ARCH := arm64 TARGET_ARCH_VARIANT := armv8-2a TARGET_CPU_ABI := arm64-v8a TARGET_CPU_VARIANT := cortex-a55 -TARGET_CPU_VARIANT_RUNTIME := cortex-a55 BOARD_KERNEL_CMDLINE += earlycon=exynos4210,0x10870000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y