.. | .. |
---|
27 | 27 | * the THREAD_WINKLE_BITS are set, which indicate which threads have not |
---|
28 | 28 | * yet woken from the winkle state. |
---|
29 | 29 | */ |
---|
30 | | -#define PNV_CORE_IDLE_LOCK_BIT 0x10000000 |
---|
| 30 | +#define NR_PNV_CORE_IDLE_LOCK_BIT 28 |
---|
| 31 | +#define PNV_CORE_IDLE_LOCK_BIT (1ULL << NR_PNV_CORE_IDLE_LOCK_BIT) |
---|
31 | 32 | |
---|
| 33 | +#define PNV_CORE_IDLE_WINKLE_COUNT_SHIFT 16 |
---|
32 | 34 | #define PNV_CORE_IDLE_WINKLE_COUNT 0x00010000 |
---|
33 | | -#define PNV_CORE_IDLE_WINKLE_COUNT_ALL_BIT 0x00080000 |
---|
34 | 35 | #define PNV_CORE_IDLE_WINKLE_COUNT_BITS 0x000F0000 |
---|
35 | 36 | #define PNV_CORE_IDLE_THREAD_WINKLE_BITS_SHIFT 8 |
---|
36 | 37 | #define PNV_CORE_IDLE_THREAD_WINKLE_BITS 0x0000FF00 |
---|
.. | .. |
---|
68 | 69 | #define ERR_DEEP_STATE_ESL_MISMATCH -2 |
---|
69 | 70 | |
---|
70 | 71 | #ifndef __ASSEMBLY__ |
---|
71 | | -/* Additional SPRs that need to be saved/restored during stop */ |
---|
72 | | -struct stop_sprs { |
---|
73 | | - u64 pid; |
---|
74 | | - u64 ldbar; |
---|
75 | | - u64 fscr; |
---|
76 | | - u64 hfscr; |
---|
77 | | - u64 mmcr1; |
---|
78 | | - u64 mmcr2; |
---|
79 | | - u64 mmcra; |
---|
80 | | -}; |
---|
81 | 72 | |
---|
82 | 73 | #define PNV_IDLE_NAME_LEN 16 |
---|
83 | 74 | struct pnv_idle_states_t { |
---|
.. | .. |
---|
92 | 83 | |
---|
93 | 84 | extern struct pnv_idle_states_t *pnv_idle_states; |
---|
94 | 85 | extern int nr_pnv_idle_states; |
---|
95 | | -extern u32 pnv_fastsleep_workaround_at_entry[]; |
---|
96 | | -extern u32 pnv_fastsleep_workaround_at_exit[]; |
---|
97 | | - |
---|
98 | | -extern u64 pnv_first_deep_stop_state; |
---|
99 | 86 | |
---|
100 | 87 | unsigned long pnv_cpu_offline(unsigned int cpu); |
---|
101 | 88 | int validate_psscr_val_mask(u64 *psscr_val, u64 *psscr_mask, u32 flags); |
---|