Re: [PATCH] cpufreq: Don't send callback pointer to cpufreq_add_update_util_hook()

From: Rafael J. Wysocki
Date: Thu Aug 17 2017 - 11:46:52 EST


On Thursday, August 17, 2017 2:04:48 PM CEST Viresh Kumar wrote:
> The callers already have the structure (struct update_util_data) where
> the function pointer is saved by cpufreq_add_update_util_hook(). And its
> better if the callers fill it themselves, as they can do it from the
> governor->init() callback then, which is called only once per policy
> lifetime rather than doing it from governor->start which can get called
> multiple times.

So what problem exactly is this addressing?

Thanks,
Rafael