]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite420249d44d02e9fc110087ed8feddc38b13528c
treeeca13379193eb23bb9519d1a71d43414fb27dc88
parentadbcf8d74f4609e142b01520afa173bfe911122b
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