]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: power_allocator: Fix Kconfig warning
authorYueHaibing <yuehaibing@huawei.com>
Wed, 13 Nov 2019 10:53:13 +0000 (18:53 +0800)
committerZhang Rui <rui.zhang@intel.com>
Sat, 7 Dec 2019 13:49:06 +0000 (21:49 +0800)
commit52a0d45f38fe1b3188b4d221d918bd8aa1356fb0
tree9f9eafe902949f2e6ac2c86deef7a022aa9fdf5e
parent3d2bb4628de39128fb339f3e5db476e360f218a9
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 <qperret@google.com>
Fixes: 4a8516df6c66 ("thermal: cpu_cooling: Migrate to using the EM framework")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20191113105313.41616-1-yuehaibing@huawei.com
drivers/thermal/Kconfig