Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

Viresh Kumar
2014-12-09T10:36:46Z

On 9 December 2014 at 16:02, Javi Merino <javi.merino@arm.com> wrote:
> Sorry but I don't follow. __cpufreq_cooling_register() is passed a
> clip_cpus mask, not a single cpu. How do I get "the cpu for which
> __cpufreq_cooling_register() is called" if not by looping through all
> the cpus in the mask?

Yeah, its np that is passed instead of cpu number. So, that wouldn't
be usable. Also because of the limitations I explained earlier, it makes
sense to iterate over all clip_cpus and finding which one owns OPPs.

--
viresh