Re: [PATCH V2] thermal: cpu_cooling: fix lockdep problems in cpu_cooling

2015-08-14 Thread Eduardo Valentin
On Fri, Aug 14, 2015 at 11:25:56AM +0530, Viresh Kumar wrote: > On 12-08-15, 15:22, Viresh Kumar wrote: > > From: Russell King > > Fixes: 2dcd851fe4b4 ("thermal: cpu_cooling: Update always cpufreq policy > > with > > Reviewed-by: Viresh Kumar > > Signed-off-by: Russell King > > Signed-off-by: V

Re: [PATCH V2] thermal: cpu_cooling: fix lockdep problems in cpu_cooling

2015-08-13 Thread Viresh Kumar
On 12-08-15, 15:22, Viresh Kumar wrote: > From: Russell King > Fixes: 2dcd851fe4b4 ("thermal: cpu_cooling: Update always cpufreq policy with > Reviewed-by: Viresh Kumar > Signed-off-by: Russell King > Signed-off-by: Viresh Kumar > --- > > Hi Eduardo/Zhang, > > This is 4.2-rc material, please

[PATCH V2] thermal: cpu_cooling: fix lockdep problems in cpu_cooling

2015-08-12 Thread Viresh Kumar
From: Russell King A recent change to the cpu_cooling code introduced a AB-BA deadlock scenario between the cpufreq_policy_notifier_list rwsem and the cooling_cpufreq_lock. This is caused by cooling_cpufreq_lock being held before the registration/removal of the notifier block (an operation which