hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/include/asm/cpuidle.h
....@@ -27,10 +27,11 @@
2727 * the THREAD_WINKLE_BITS are set, which indicate which threads have not
2828 * yet woken from the winkle state.
2929 */
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)
3132
33
+#define PNV_CORE_IDLE_WINKLE_COUNT_SHIFT 16
3234 #define PNV_CORE_IDLE_WINKLE_COUNT 0x00010000
33
-#define PNV_CORE_IDLE_WINKLE_COUNT_ALL_BIT 0x00080000
3435 #define PNV_CORE_IDLE_WINKLE_COUNT_BITS 0x000F0000
3536 #define PNV_CORE_IDLE_THREAD_WINKLE_BITS_SHIFT 8
3637 #define PNV_CORE_IDLE_THREAD_WINKLE_BITS 0x0000FF00
....@@ -68,16 +69,6 @@
6869 #define ERR_DEEP_STATE_ESL_MISMATCH -2
6970
7071 #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
-};
8172
8273 #define PNV_IDLE_NAME_LEN 16
8374 struct pnv_idle_states_t {
....@@ -92,10 +83,6 @@
9283
9384 extern struct pnv_idle_states_t *pnv_idle_states;
9485 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;
9986
10087 unsigned long pnv_cpu_offline(unsigned int cpu);
10188 int validate_psscr_val_mask(u64 *psscr_val, u64 *psscr_mask, u32 flags);