From 34de010274be5f6395dc341f6b9cbbe4737ab9cb Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Tue, 29 Aug 2023 12:49:11 +0100 Subject: [PATCH] LG8n: Enable UFS boottime setting Bug: 74868067 Test: reboot test Signed-off-by: Shirayuki39 --- rootdir/etc/init/hw/init.cgroup.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init/hw/init.cgroup.rc b/rootdir/etc/init/hw/init.cgroup.rc index 71e2c2a..f8d9b7a 100644 --- a/rootdir/etc/init/hw/init.cgroup.rc +++ b/rootdir/etc/init/hw/init.cgroup.rc @@ -13,6 +13,9 @@ on charger on post-fs-data write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor sugov_ext write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor sugov_ext + +on init + write /sys/devices/platform/soc/11270000.ufshci/clkgate_enable 0 write /proc/sys/kernel/sched_util_clamp_min_rt_default 0 # boot perf. tune @@ -28,6 +31,7 @@ on post-fs-data write /dev/cpuctl/background/cpu.uclamp.latency_sensitive 1 on property:sys.boot_completed=1 + write /sys/devices/platform/soc/11270000.ufshci/clkgate_enable 1 write /proc/sys/kernel/sched_migration_cost_ns 200000 # restore boot perf. tune