From cbb28eab671def4ba38d47c1b3f5602cebfbdd33 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Thu, 12 Sep 2024 13:15:56 -0700 Subject: [PATCH 1/3] gs101: 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.gs101 Flag: EXEMPT, refactor to fix build failure Change-Id: Ia66a69a9375971223b712d695f5ea5f2c1e26c19 --- powerstats/Gs101CommonDataProviders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerstats/Gs101CommonDataProviders.cpp b/powerstats/Gs101CommonDataProviders.cpp index 615bb164..85bbbc45 100644 --- a/powerstats/Gs101CommonDataProviders.cpp +++ b/powerstats/Gs101CommonDataProviders.cpp @@ -343,7 +343,7 @@ void addSoC(std::shared_ptr p) { } void setEnergyMeter(std::shared_ptr p) { - std::vector deviceNames { "s2mpg10-odpm", "s2mpg11-odpm" }; + std::vector deviceNames { "s2mpg10-odpm", "s2mpg11-odpm" }; p->setEnergyMeterDataProvider(std::make_unique(deviceNames, true)); } From b6da7df66ee9a45e8a5dd8b3b61a830955108a27 Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Mon, 1 Jul 2024 08:51:33 +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: I0c0a39e3fc03d8df4e9e87cf61fb8e1dafcfc996 --- conf/init.gs101.rc | 4 ++++ task_profiles.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index a3a7156b..0edace57 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.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 @@ -93,6 +95,8 @@ on init chmod 0220 /proc/vendor_sched/prefer_idle_clear chmod 0220 /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-3-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 60344f3e701152e100204c4f087915d4dd53c341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kosi=C5=84ski?= Date: Fri, 20 Sep 2024 19:14:06 +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: I77ae2cbd9fbe09e60db3ee89fc33f32cecb8bab6 --- BoardConfig-common.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index 699223af..33bf61ea 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 DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)