From 5853892841a4e95dd1e9dfce2d1ab452e45517e4 Mon Sep 17 00:00:00 2001 From: "rogercl.yang" Date: Tue, 20 Apr 2021 12:40:44 +0800 Subject: [PATCH] ANDROID: cpuidle: enable TEO and MENU governors in gki_defconfig TEO governor was implemented in android12-5.10, however CONFIG_CPU_IDLE_GOV_TEO was not enabled in gki_defconfig and vendor can not select TEO governor. This commit enable TEO and MENU governors in gki_defconfig, and vendors can select the governor they wanted, e.g. in rc file: write /sys/devices/system/cpu/cpuidle/current_governor "teo" Besides, MENU governor's rating is 20, and higher than TEO governor, so MENU governor is still the default governor if vendors not select the governor manually. Bug: 185762657 Change-Id: I87be7c4d119f17901b921f22dd7df8b61ac539af Signed-off-by: rogercl.yang (cherry picked from commit ea527a52d1eb630fd767d34633182cb022179f1f) --- arch/arm64/configs/gki_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index 30ba0112581e..2f37eeb156e9 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -69,6 +69,8 @@ CONFIG_PM_WAKELOCKS_LIMIT=0 # CONFIG_PM_WAKELOCKS_GC is not set CONFIG_ENERGY_MODEL=y CONFIG_CPU_IDLE=y +CONFIG_CPU_IDLE_GOV_MENU=y +CONFIG_CPU_IDLE_GOV_TEO=y CONFIG_ARM_CPUIDLE=y CONFIG_ARM_PSCI_CPUIDLE=y CONFIG_CPU_FREQ=y