thermal: add dependency for THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
diff mbox series

Message ID 20191210204216.3239987-1-arnd@arndb.de
State Mainlined, archived
Delegated to: Zhang Rui
Headers show
Series
  • thermal: add dependency for THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
Related show

Commit Message

Arnd Bergmann Dec. 10, 2019, 8:41 p.m. UTC
The THERMAL_GOV_POWER_ALLOCATOR symbol requires CONFIG_ENERGY_MODEL:

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>

Add this as a dependency for THERMAL_DEFAULT_GOV_POWER_ALLOCATOR to
avoid creating invalid configurations.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Daniel Lezcano Dec. 10, 2019, 8:49 p.m. UTC | #1
On 10/12/2019 21:41, Arnd Bergmann wrote:
> The THERMAL_GOV_POWER_ALLOCATOR symbol requires CONFIG_ENERGY_MODEL:
> 
> 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>
> 
> Add this as a dependency for THERMAL_DEFAULT_GOV_POWER_ALLOCATOR to
> avoid creating invalid configurations.

Hi Arnd,

thanks for the patch. The problem is already fixed.

  -- Daniel

Patch
diff mbox series

diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 59b79fc48266..712bcd668a4d 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -109,6 +109,7 @@  config THERMAL_DEFAULT_GOV_USER_SPACE
 config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
 	bool "power_allocator"
 	select THERMAL_GOV_POWER_ALLOCATOR
+	depends on ENERGY_MODEL
 	help
 	  Select this if you want to control temperature based on
 	  system and device power allocation. This governor can only