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>
This commit is contained in:

committed by
Michael Ellerman

parent
1945bc4549
commit
adbcf8d74f
@@ -7,8 +7,8 @@
|
||||
#define PNV_THREAD_NAP 1
|
||||
#define PNV_THREAD_SLEEP 2
|
||||
#define PNV_THREAD_WINKLE 3
|
||||
#define PNV_CORE_IDLE_LOCK_BIT 0x100
|
||||
#define PNV_CORE_IDLE_THREAD_BITS 0x0FF
|
||||
#define PNV_CORE_IDLE_LOCK_BIT 0x10000000
|
||||
#define PNV_CORE_IDLE_THREAD_BITS 0x000000FF
|
||||
|
||||
/*
|
||||
* ============================ NOTE =================================
|
||||
|
Reference in New Issue
Block a user