Re: [PATCH v5 2/3] thermal: cpu_cooling: Make the power-related code depend on IPA

From: Viresh Kumar
Date: Thu May 30 2019 - 07:07:39 EST


On 30-05-19, 10:20, Quentin Perret wrote:
> 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.
>
> Suggested-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
> Signed-off-by: Quentin Perret <quentin.perret@xxxxxxx>
> ---
> drivers/thermal/cpu_cooling.c | 214 +++++++++++++++++-----------------
> 1 file changed, 104 insertions(+), 110 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh