Re: [PATCH V2] cpufreq: qoriq: Register cooling device based on device tree

2015-11-26 Thread Denis Kirjanov
On 11/26/15, Jia Hongtao wrote: > Register the qoriq cpufreq driver as a cooling device, based on the > thermal device tree framework. When temperature crosses the passive trip > point cpufreq is used to throttle CPUs. > > Signed-off-by: Jia Hongtao

RE: [PATCH V2] cpufreq: qoriq: Register cooling device based on device tree

2015-11-26 Thread Hongtao Jia
bs.org; linux- > p...@vger.kernel.org > Subject: Re: [PATCH V2] cpufreq: qoriq: Register cooling device based on > device tree > > On 11/26/15, Jia Hongtao <hongtao@freescale.com> wrote: > > Register the qoriq cpufreq driver as a cooling device, based on the > &

Re: [PATCH V2] cpufreq: qoriq: Register cooling device based on device tree

2015-11-26 Thread Viresh Kumar
On 26-11-15, 14:27, Jia Hongtao wrote: > +static void qoriq_cpufreq_ready(struct cpufreq_policy *policy) > +{ > + struct cpu_data *cpud = policy->driver_data; > + struct device_node *np = of_get_cpu_node(policy->cpu, NULL); > + > + if (WARN_ON(!np)) > + return; Drop this

RE: [PATCH V2] cpufreq: qoriq: Register cooling device based on device tree

2015-11-26 Thread Hongtao Jia
zlabs.org; devicet...@vger.kernel.org; Wood Scott-B07421 > Subject: Re: [PATCH V2] cpufreq: qoriq: Register cooling device based on > device tree > > On 26-11-15, 14:27, Jia Hongtao wrote: > > +static void qoriq_cpufreq_ready(struct cpufreq_policy *policy) { > > + struct cpu_data *

[PATCH V2] cpufreq: qoriq: Register cooling device based on device tree

2015-11-25 Thread Jia Hongtao
Register the qoriq cpufreq driver as a cooling device, based on the thermal device tree framework. When temperature crosses the passive trip point cpufreq is used to throttle CPUs. Signed-off-by: Jia Hongtao --- Changes for V2: * Using ->ready callback for cpu cooling