summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChungkai Mei <chungkai@google.com>2022-09-08 05:07:45 +0000
committerWei Wang <wvw@google.com>2022-10-21 18:49:49 +0000
commit776ba5911d8db8d9542fa00b1bfbd9fa57c1b8c6 (patch)
treea8f283ccc8ee4b8b1ad6ebfa4f664e90cc6ffbee
parentf049d3926b23dc2da4ddface573137e2dee2047e (diff)
downloadgs101-776ba5911d8db8d9542fa00b1bfbd9fa57c1b8c6.tar.gz
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
-rw-r--r--conf/init.gs101.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc
index 7503ae6f..fffdee1b 100644
--- a/conf/init.gs101.rc
+++ b/conf/init.gs101.rc
@@ -10,6 +10,9 @@ on init
# CPU0 cannot be offline
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
write /sys/block/sda/queue/iostats 0
write /sys/block/sda/queue/scheduler bfq