thermal: cpu_cooling: Make the power-related code depend on IPA
authorQuentin Perret <qperret@google.com>
Wed, 30 Oct 2019 15:14:50 +0000 (15:14 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Nov 2019 06:02:40 +0000 (07:02 +0100)
commit5a4e5b78956a570cd827f74e4b94d506d13b37b0
treee9f6e9d181f240f588c0656964328253c4743dda
parent27a47e422ef3cb09f6a428e2b05eb79079506875
thermal: cpu_cooling: Make the power-related code depend on IPA

The core CPU cooling infrastructure has power-related functions
that have only one client: IPA. Since there can be no user of those
functions if IPA is not compiled in, make sure to guard them with
checks on CONFIG_THERMAL_GOV_POWER_ALLOCATOR to not waste space
unnecessarily.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20191030151451.7961-4-qperret@google.com
drivers/thermal/cpu_cooling.c