From b64a13cd3165d07b4631ede9819a5f85974586c7 Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Fri, 26 May 2023 22:30:51 +0000 Subject: [PATCH] init: Add async for suspend/resume Bug: 258100247 Change-Id: Ifcec9418e2b10db1f2a533fc04110ab548e241a6 Signed-off-by: Ziyi Cui --- conf/init.zuma.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 277026b1..9c2c9e63 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -817,6 +817,13 @@ on property:sys.boot_completed=1 write /sys/devices/system/cpu/cpufreq/policy8/sched_pixel/pmu_limit_enable 1 write /proc/vendor_sched/pmu_poll_enable 0 + # Make devices on the critical path for suspend/resume asynchronous + write /sys/devices/platform/fixedregulator@0/regulator/regulator.2/power/async "enabled" + write /sys/devices/platform/fixedregulator@0/power/async "enabled" + write /sys/devices/platform/26040000.clock-controller/power/async "enabled" + write /sys/devices/platform/10840000.pinctrl/power/async "enabled" + write /sys/devices/platform/13060000.pinctrl/power/async "enabled" + # Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%) write /dev/cpuctl/background/cpu.shares 1024 write /dev/cpuctl/system-background/cpu.shares 1024