]> 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)
commitb1756caecba5b54f7b7decc493b48b02b098a7ed
treebbf780dbc1abca864c5d3ef071008478e991f601
parent3883a4a218eecf8bbadca52385eaf435a0e3b6ab
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