init: set teo as cpu idle governor

To enhance system performance and save power, chagne idle governor to TEO.

Test: boot to home
Bug: 175800838
Signed-off-by: Chungkai Mei <chungkai@google.com>
Change-Id: I591c1ff8d0c9ed8d5a3b4861c9c5b715ed1c3eae
This commit is contained in:
Chungkai Mei 2022-09-08 05:07:45 +00:00 committed by Wei Wang
parent f049d3926b
commit 776ba5911d

View file

@ -10,6 +10,9 @@ on init
# CPU0 cannot be offline # CPU0 cannot be offline
chmod 0444 /sys/devices/system/cpu/cpu0/online chmod 0444 /sys/devices/system/cpu/cpu0/online
# Set teo as cpu idle governor
write /sys/devices/system/cpu/cpuidle/current_governor teo
# Boot time fs tuning # Boot time fs tuning
write /sys/block/sda/queue/iostats 0 write /sys/block/sda/queue/iostats 0
write /sys/block/sda/queue/scheduler bfq write /sys/block/sda/queue/scheduler bfq