powernv/cpuidle: Redesign idle states management
[linux/fpc-iii.git] / arch / powerpc / include / asm / cpuidle.h
blobd2f99ca1e3a689d8e172cabfe5807cdfd1bf24ec
1 #ifndef _ASM_POWERPC_CPUIDLE_H
2 #define _ASM_POWERPC_CPUIDLE_H
4 #ifdef CONFIG_PPC_POWERNV
5 /* Used in powernv idle state management */
6 #define PNV_THREAD_RUNNING 0
7 #define PNV_THREAD_NAP 1
8 #define PNV_THREAD_SLEEP 2
9 #define PNV_THREAD_WINKLE 3
10 #define PNV_CORE_IDLE_LOCK_BIT 0x100
11 #define PNV_CORE_IDLE_THREAD_BITS 0x0FF
13 #ifndef __ASSEMBLY__
14 extern u32 pnv_fastsleep_workaround_at_entry[];
15 extern u32 pnv_fastsleep_workaround_at_exit[];
16 #endif
18 #endif
20 #endif