diff options
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/cpuidle.h | 13 | ||||
-rw-r--r-- | arch/powerpc/include/asm/feature-fixups.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/switch_to.h | 8 | ||||
-rw-r--r-- | arch/powerpc/include/asm/xics.h | 2 |
4 files changed, 16 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/cpuidle.h b/arch/powerpc/include/asm/cpuidle.h index 3d7fc06532a1..01b8a13f0224 100644 --- a/arch/powerpc/include/asm/cpuidle.h +++ b/arch/powerpc/include/asm/cpuidle.h | |||
@@ -19,4 +19,17 @@ extern u64 pnv_first_deep_stop_state; | |||
19 | 19 | ||
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | /* Idle state entry routines */ | ||
23 | #ifdef CONFIG_PPC_P7_NAP | ||
24 | #define IDLE_STATE_ENTER_SEQ(IDLE_INST) \ | ||
25 | /* Magic NAP/SLEEP/WINKLE mode enter sequence */ \ | ||
26 | std r0,0(r1); \ | ||
27 | ptesync; \ | ||
28 | ld r0,0(r1); \ | ||
29 | 1: cmp cr0,r0,r0; \ | ||
30 | bne 1b; \ | ||
31 | IDLE_INST; \ | ||
32 | b . | ||
33 | #endif /* CONFIG_PPC_P7_NAP */ | ||
34 | |||
22 | #endif | 35 | #endif |
diff --git a/arch/powerpc/include/asm/feature-fixups.h b/arch/powerpc/include/asm/feature-fixups.h index 57fec8ac7b92..ddf54f5bbdd1 100644 --- a/arch/powerpc/include/asm/feature-fixups.h +++ b/arch/powerpc/include/asm/feature-fixups.h | |||
@@ -186,6 +186,7 @@ label##3: \ | |||
186 | 186 | ||
187 | #ifndef __ASSEMBLY__ | 187 | #ifndef __ASSEMBLY__ |
188 | void apply_feature_fixups(void); | 188 | void apply_feature_fixups(void); |
189 | void setup_feature_keys(void); | ||
189 | #endif | 190 | #endif |
190 | 191 | ||
191 | #endif /* __ASM_POWERPC_FEATURE_FIXUPS_H */ | 192 | #endif /* __ASM_POWERPC_FEATURE_FIXUPS_H */ |
diff --git a/arch/powerpc/include/asm/switch_to.h b/arch/powerpc/include/asm/switch_to.h index 0a74ebe934e1..17c8380673a6 100644 --- a/arch/powerpc/include/asm/switch_to.h +++ b/arch/powerpc/include/asm/switch_to.h | |||
@@ -75,14 +75,6 @@ static inline void disable_kernel_spe(void) | |||
75 | static inline void __giveup_spe(struct task_struct *t) { } | 75 | static inline void __giveup_spe(struct task_struct *t) { } |
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM | ||
79 | extern void flush_tmregs_to_thread(struct task_struct *); | ||
80 | #else | ||
81 | static inline void flush_tmregs_to_thread(struct task_struct *t) | ||
82 | { | ||
83 | } | ||
84 | #endif | ||
85 | |||
86 | static inline void clear_task_ebb(struct task_struct *t) | 78 | static inline void clear_task_ebb(struct task_struct *t) |
87 | { | 79 | { |
88 | #ifdef CONFIG_PPC_BOOK3S_64 | 80 | #ifdef CONFIG_PPC_BOOK3S_64 |
diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h index f5f729c11578..f0b238516e9b 100644 --- a/arch/powerpc/include/asm/xics.h +++ b/arch/powerpc/include/asm/xics.h | |||
@@ -159,6 +159,8 @@ extern void xics_teardown_cpu(void); | |||
159 | extern void xics_kexec_teardown_cpu(int secondary); | 159 | extern void xics_kexec_teardown_cpu(int secondary); |
160 | extern void xics_migrate_irqs_away(void); | 160 | extern void xics_migrate_irqs_away(void); |
161 | extern void icp_native_eoi(struct irq_data *d); | 161 | extern void icp_native_eoi(struct irq_data *d); |
162 | extern int xics_set_irq_type(struct irq_data *d, unsigned int flow_type); | ||
163 | extern int xics_retrigger(struct irq_data *data); | ||
162 | #ifdef CONFIG_SMP | 164 | #ifdef CONFIG_SMP |
163 | extern int xics_get_irq_server(unsigned int virq, const struct cpumask *cpumask, | 165 | extern int xics_get_irq_server(unsigned int virq, const struct cpumask *cpumask, |
164 | unsigned int strict_check); | 166 | unsigned int strict_check); |