Re: [PATCH] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-29 Thread Daniel Lezcano
On 30/01/2019 06:22, 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 drivers

Re: [PATCH] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-29 Thread Viresh Kumar
On 30-01-19, 10:52, 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 drivers.

[PATCH] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-29 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 thermal