]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Idle do not hold reservation longer than required
authorNicholas Piggin <npiggin@gmail.com>
Wed, 19 Apr 2017 13:05:49 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Apr 2017 10:31:57 +0000 (20:31 +1000)
commitc59f83682def0b7561b67bdff2f98754df662d14
treeeca13379193eb23bb9519d1a71d43414fb27dc88
parent8fa6cc0335f6771cf427eaa9b1c1016aa7938572
powerpc/64s: Idle do not hold reservation longer than required

When taking the core idle state lock, grab it immediately like a regular
lock, rather than adding more tests in there. Holding the lock keeps it
stable, so there is no need to do it whole holding the reservation.

Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S