Re: [PATCH 2/2] powerpc/64: Fix race condition in setting lock bit in idle/wakeup code

2016-10-25 Thread Gautham R Shenoy
Hi Paul, On Fri, Oct 21, 2016 at 08:04:17PM +1100, Paul Mackerras wrote: > This fixes a race condition where one thread that is entering or > leaving a power-saving state can inadvertently ignore the lock bit > that was set by another thread, and potentially also clear it. > The core_idle_lock_hel

[PATCH 2/2] powerpc/64: Fix race condition in setting lock bit in idle/wakeup code

2016-10-21 Thread Paul Mackerras
This fixes a race condition where one thread that is entering or leaving a power-saving state can inadvertently ignore the lock bit that was set by another thread, and potentially also clear it. The core_idle_lock_held function is called when the lock bit is seen to be set. It polls the lock bit u