Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-08-15 Thread Rafael J. Wysocki
On Wednesday, August 08, 2012, Colin Cross wrote: > On Tue, Aug 7, 2012 at 3:15 PM, Rafael J. Wysocki wrote: > > On Wednesday, July 25, 2012, Colin Cross wrote: > >> The cpu hotplug notifier gets called in both atomic and non-atomic > >> contexts, it is not always safe to lock a mutex. Filter out

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-08-07 Thread Colin Cross
On Tue, Aug 7, 2012 at 3:15 PM, Rafael J. Wysocki wrote: > On Wednesday, July 25, 2012, Colin Cross wrote: >> The cpu hotplug notifier gets called in both atomic and non-atomic >> contexts, it is not always safe to lock a mutex. Filter out all events >> except the six necessary ones, which are al

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-08-07 Thread Rafael J. Wysocki
On Wednesday, July 25, 2012, Colin Cross wrote: > The cpu hotplug notifier gets called in both atomic and non-atomic > contexts, it is not always safe to lock a mutex. Filter out all events > except the six necessary ones, which are all sleepable, before taking > the mutex. > > Signed-off-by: Col

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-31 Thread Srivatsa S. Bhat
On 07/31/2012 11:57 PM, Colin Cross wrote: > On Tue, Jul 31, 2012 at 8:43 AM, Srivatsa S. Bhat > wrote: >> On 07/26/2012 02:50 AM, Colin Cross wrote: >>> The cpu hotplug notifier gets called in both atomic and non-atomic >>> contexts, it is not always safe to lock a mutex. Filter out all events >

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-31 Thread Colin Cross
On Tue, Jul 31, 2012 at 8:43 AM, Srivatsa S. Bhat wrote: > On 07/26/2012 02:50 AM, Colin Cross wrote: >> The cpu hotplug notifier gets called in both atomic and non-atomic >> contexts, it is not always safe to lock a mutex. Filter out all events >> except the six necessary ones, which are all sle

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-31 Thread Srivatsa S. Bhat
On 07/26/2012 02:50 AM, Colin Cross wrote: > The cpu hotplug notifier gets called in both atomic and non-atomic > contexts, it is not always safe to lock a mutex. Filter out all events > except the six necessary ones, which are all sleepable, before taking > the mutex. > > Signed-off-by: Colin Cr

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Shilimkar, Santosh
On Thu, Jul 26, 2012 at 9:25 AM, Shilimkar, Santosh wrote: > On Wed, Jul 25, 2012 at 11:20 PM, Colin Cross wrote: >> The cpu hotplug notifier gets called in both atomic and non-atomic >> contexts, it is not always safe to lock a mutex. Filter out all events >> except the six necessary ones, whic

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Rafael J. Wysocki
On Thursday, July 26, 2012, Rafael J. Wysocki wrote: > On Thursday, July 26, 2012, Colin Cross wrote: > > On Thu, Jul 26, 2012 at 12:55 PM, Rafael J. Wysocki wrote: > > > On Wednesday, July 25, 2012, Colin Cross wrote: > > >> The cpu hotplug notifier gets called in both atomic and non-atomic > > >

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Rafael J. Wysocki
On Thursday, July 26, 2012, Colin Cross wrote: > On Thu, Jul 26, 2012 at 12:55 PM, Rafael J. Wysocki wrote: > > On Wednesday, July 25, 2012, Colin Cross wrote: > >> The cpu hotplug notifier gets called in both atomic and non-atomic > >> contexts, it is not always safe to lock a mutex. Filter out

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Colin Cross
On Thu, Jul 26, 2012 at 12:55 PM, Rafael J. Wysocki wrote: > On Wednesday, July 25, 2012, Colin Cross wrote: >> The cpu hotplug notifier gets called in both atomic and non-atomic >> contexts, it is not always safe to lock a mutex. Filter out all events >> except the six necessary ones, which are

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Rafael J. Wysocki
On Wednesday, July 25, 2012, Colin Cross wrote: > The cpu hotplug notifier gets called in both atomic and non-atomic > contexts, it is not always safe to lock a mutex. Filter out all events > except the six necessary ones, which are all sleepable, before taking > the mutex. I wonder what mutual e

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-26 Thread Shilimkar, Santosh
On Wed, Jul 25, 2012 at 11:20 PM, Colin Cross wrote: > The cpu hotplug notifier gets called in both atomic and non-atomic > contexts, it is not always safe to lock a mutex. Filter out all events > except the six necessary ones, which are all sleepable, before taking > the mutex. > > Signed-off-by

[PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-07-25 Thread Colin Cross
The cpu hotplug notifier gets called in both atomic and non-atomic contexts, it is not always safe to lock a mutex. Filter out all events except the six necessary ones, which are all sleepable, before taking the mutex. Signed-off-by: Colin Cross --- drivers/cpuidle/coupled.c | 12