Skip to content

Commit 5026061

Browse files
YueHaibingzhang-rui
authored andcommitted
thermal: power_allocator: Fix Kconfig warning
When do randbuiding, we got this: WARNING: unmet direct dependencies detected for THERMAL_GOV_POWER_ALLOCATOR Depends on [n]: THERMAL [=y] && ENERGY_MODEL [=n] Selected by [y]: - THERMAL_DEFAULT_GOV_POWER_ALLOCATOR [=y] && <choice> The Kconfig option THERMAL_DEFAULT_GOV_POWER_ALLOCATOR selects the THERMAL_GOV_POWER_ALLOCATOR but this one depends on the ENERGY_MODEL which is not enabled. Make THERMAL_DEFAULT_GOV_POWER_ALLOCATOR depend on THERMAL_GOV_POWER_ALLOCATOR to fix this warning. Suggested-by: Quentin Perret <[email protected]> Fixes: a4e893e ("thermal: cpu_cooling: Migrate to using the EM framework") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Signed-off-by: Zhang Rui <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fb3da48 commit 5026061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ config THERMAL_DEFAULT_GOV_USER_SPACE
108108

109109
config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
110110
bool "power_allocator"
111-
select THERMAL_GOV_POWER_ALLOCATOR
111+
depends on THERMAL_GOV_POWER_ALLOCATOR
112112
help
113113
Select this if you want to control temperature based on
114114
system and device power allocation. This governor can only

0 commit comments

Comments
 (0)