From 1cd9bdb775f29ca0730d995a2fe695fd525db17f Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Wed, 24 May 2023 03:31:18 +0000 Subject: [PATCH] Restore uclamp.max for bg groups These values could indicate if cpu is running important tasks. Bug: 201260585 Test: build pass Change-Id: I2fce47de1833ed0814049e22199d0cdd41e80dc3 --- conf/init.zuma.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index e5e199d5..0d7a66e8 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -790,6 +790,12 @@ on property:sys.boot_completed=1 # Set bg group throttle write /proc/vendor_sched/ug_bg_group_throttle 308 + # Set uclamp.max for some groups, which could indicate cpu importance used in scheduling + write /proc/vendor_sched/bg_uclamp_max 512 + write /proc/vendor_sched/sysbg_uclamp_max 512 + write /proc/vendor_sched/ota_uclamp_max 512 + write /proc/vendor_sched/dex2oat_uclamp_max 615 + # Set PMU freq limit parameters write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold 2 write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold 59