Re: [PATCH 5/7] cpufreq: balance out cpufreq_cpu_{get,put} for scaling drivers using setpolicy

2013-02-06 Thread Viresh Kumar
On 6 February 2013 21:41, Dirk Brandewie wrote: > our files are clearly out of sync :-) The code in cpufreq_add_dev() is I was at latest bleeding-edge then, but i still have below code in my HEAD. > #ifdef CONFIG_SMP > /* check whether a different CPU already registered this >

Re: [PATCH 5/7] cpufreq: balance out cpufreq_cpu_{get,put} for scaling drivers using setpolicy

2013-02-06 Thread Dirk Brandewie
On 02/05/2013 06:45 PM, Viresh Kumar wrote: On 6 February 2013 07:38, Dirk Brandewie wrote: On 02/05/2013 05:58 PM, Viresh Kumar wrote: On Tue, Feb 5, 2013 at 11:54 PM, wrote: From: Dirk Brandewie There is an additional reference added to the driver in cpufreq_add_dev() that is removed

Re: [PATCH 5/7] cpufreq: balance out cpufreq_cpu_{get,put} for scaling drivers using setpolicy

2013-02-05 Thread Viresh Kumar
On 6 February 2013 07:38, Dirk Brandewie wrote: > On 02/05/2013 05:58 PM, Viresh Kumar wrote: >> >> On Tue, Feb 5, 2013 at 11:54 PM, wrote: >>> >>> From: Dirk Brandewie >>> >>> There is an additional reference added to the driver in >>> cpufreq_add_dev() that is removed in__cpufreq_governor()

Re: [PATCH 5/7] cpufreq: balance out cpufreq_cpu_{get,put} for scaling drivers using setpolicy

2013-02-05 Thread Dirk Brandewie
On 02/05/2013 05:58 PM, Viresh Kumar wrote: On Tue, Feb 5, 2013 at 11:54 PM, wrote: From: Dirk Brandewie There is an additional reference added to the driver in cpufreq_add_dev() that is removed in__cpufreq_governor() if the driver implements target(). Remove the last reference when the dr

Re: [PATCH 5/7] cpufreq: balance out cpufreq_cpu_{get,put} for scaling drivers using setpolicy

2013-02-05 Thread Viresh Kumar
On Tue, Feb 5, 2013 at 11:54 PM, wrote: > From: Dirk Brandewie > > There is an additional reference added to the driver in > cpufreq_add_dev() that is removed in__cpufreq_governor() if the > driver implements target(). Remove the last reference when the > driver implements setpolicy() > > Sign

[PATCH 5/7] cpufreq: balance out cpufreq_cpu_{get,put} for scaling drivers using setpolicy

2013-02-05 Thread dirk . brandewie
From: Dirk Brandewie There is an additional reference added to the driver in cpufreq_add_dev() that is removed in__cpufreq_governor() if the driver implements target(). Remove the last reference when the driver implements setpolicy() Signed-off-by: Dirk Brandewie --- drivers/cpufreq/cpufreq.