Re: [PATCHv3 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-25 Thread Amit Kucheria
On Fri, Jan 25, 2019 at 4:01 PM Viresh Kumar wrote: > > On 25-01-19, 12:32, Amit Kucheria wrote: > > All cpufreq drivers do similar things to register as a cooling device. > > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > > to register the cooling device on their

Re: [PATCHv3 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-25 Thread Rafael J. Wysocki
On Fri, Jan 25, 2019 at 11:32 AM Viresh Kumar wrote: > > On 25-01-19, 12:32, Amit Kucheria wrote: > > All cpufreq drivers do similar things to register as a cooling device. > > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > > to register the cooling device on their

Re: [PATCHv3 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-25 Thread Viresh Kumar
On 25-01-19, 12:32, Amit Kucheria wrote: > All cpufreq drivers do similar things to register as a cooling device. > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > to register the cooling device on their behalf. This allows us to get > rid of duplicated code in the

[PATCHv3 2/9] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-24 Thread Amit Kucheria
All cpufreq drivers do similar things to register as a cooling device. Provide a cpufreq driver flag so drivers can just ask the cpufreq core to register the cooling device on their behalf. This allows us to get rid of duplicated code in the drivers. In order to allow this, we add a struct