Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 2feb00e

Browse files
Aran DaltonTreehugger Robot
authored andcommitted
ANDROID: gki_defconfig: Set CONFIG_IDLE_INJECT and CONFIG_CPU_IDLE_THERMAL into y
Under certain circumstances a SoC can reach a critical temperaturelimit and is unable to stabilize the temperature around a temperaturecontrol. The system may ask for a specific power budget butbecause of the OPP density, we can only choose an OPP with a powerbudget lower than the requested one and under-utilize the CPU, thuslosing performance. In other words, one OPP under-utilizes the CPUwith a power less than the requested power budget and the next OPPexceeds the power budget. The cpu idle cooling can solve this problem. Bug: 299411923 Signed-off-by: Aran Dalton <arda@allwinnertech.com> Change-Id: I1c17b340617e88be075097dc47f30ce94be2a4d7
1 parent e0e4224 commit 2feb00e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arch/arm64/configs/gki_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ CONFIG_THERMAL_GOV_BANG_BANG=y
430430
CONFIG_THERMAL_GOV_USER_SPACE=y
431431
CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
432432
CONFIG_CPU_THERMAL=y
433+
CONFIG_CPU_IDLE_THERMAL=y
433434
CONFIG_DEVFREQ_THERMAL=y
434435
CONFIG_THERMAL_EMULATION=y
435436
CONFIG_WATCHDOG=y
@@ -566,6 +567,7 @@ CONFIG_IIO_TRIGGER=y
566567
CONFIG_PWM=y
567568
CONFIG_GENERIC_PHY=y
568569
CONFIG_POWERCAP=y
570+
CONFIG_IDLE_INJECT=y
569571
CONFIG_ANDROID_BINDER_IPC=y
570572
CONFIG_ANDROID_BINDERFS=y
571573
CONFIG_ANDROID_VENDOR_HOOKS=y

arch/x86/configs/gki_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ CONFIG_THERMAL_WRITABLE_TRIPS=y
396396
CONFIG_THERMAL_GOV_BANG_BANG=y
397397
CONFIG_THERMAL_GOV_USER_SPACE=y
398398
CONFIG_CPU_THERMAL=y
399+
CONFIG_CPU_IDLE_THERMAL=y
399400
CONFIG_DEVFREQ_THERMAL=y
400401
CONFIG_THERMAL_EMULATION=y
401402
# CONFIG_X86_PKG_TEMP_THERMAL is not set
@@ -516,6 +517,7 @@ CONFIG_IIO_BUFFER=y
516517
CONFIG_IIO_TRIGGER=y
517518
CONFIG_GENERIC_PHY=y
518519
CONFIG_POWERCAP=y
520+
CONFIG_IDLE_INJECT=y
519521
CONFIG_ANDROID_BINDER_IPC=y
520522
CONFIG_ANDROID_BINDERFS=y
521523
CONFIG_ANDROID_VENDOR_HOOKS=y

0 commit comments

Comments
 (0)