cpuidle: powerpc: no memory barrier after break from idle
authorNicholas Piggin <npiggin@gmail.com>
Wed, 14 Jun 2017 13:02:41 +0000 (23:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jun 2017 03:08:12 +0000 (13:08 +1000)
commit7ded429152e84831f6696585755f318fb351e67f
treefa7aa9cf3c30c61ef5ec7a01cbc92be38da99815
parent624e46d03576dd4d5667bad9d2ef814135d0075c
cpuidle: powerpc: no memory barrier after break from idle

A memory barrier is not required after the task wakes up,
only if we clear the polling flag before waking. The case
where we have work to do is the important one, so optimise
for it.

Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/cpuidle/cpuidle-powernv.c
drivers/cpuidle/cpuidle-pseries.c