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

From: Quentin Perret
Date: Thu May 30 2019 - 07:28:25 EST


On Thursday 30 May 2019 at 16:33:56 (+0530), Viresh Kumar wrote:
> 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>

Thanks !
Quentin