]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Expand core idle state bits
authorNicholas Piggin <npiggin@gmail.com>
Wed, 19 Apr 2017 13:05:48 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Apr 2017 10:31:49 +0000 (20:31 +1000)
commit8fa6cc0335f6771cf427eaa9b1c1016aa7938572
treebbf780dbc1abca864c5d3ef071008478e991f601
parent2b696d5758eb8b9e16ef9ada64f6c8e472a42cc0
powerpc/64s: Expand core idle state bits

In preparation for adding more bits to the core idle state word, move
the lock bit up, and unlock by flipping the lock bit rather than masking
off all but the thread bits.

Add branch hints for atomic operations while we're here.

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/include/asm/cpuidle.h
arch/powerpc/kernel/idle_book3s.S