]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitadbcf8d74f4609e142b01520afa173bfe911122b
treebbf780dbc1abca864c5d3ef071008478e991f601
parent1945bc4549e5cb1f9aa873ec29191aa54dc851d2
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