2014-12-09 18:56:52 +00:00
|
|
|
#ifndef _ASM_POWERPC_CPUIDLE_H
|
|
|
|
#define _ASM_POWERPC_CPUIDLE_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_PPC_POWERNV
|
|
|
|
/* Used in powernv idle state management */
|
|
|
|
#define PNV_THREAD_RUNNING 0
|
|
|
|
#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
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern u32 pnv_fastsleep_workaround_at_entry[];
|
|
|
|
extern u32 pnv_fastsleep_workaround_at_exit[];
|
2016-07-08 06:20:49 +00:00
|
|
|
|
|
|
|
extern u64 pnv_first_deep_stop_state;
|
2014-12-09 18:56:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|