.. | .. |
---|
5 | 5 | #ifndef _ASM_POWERPC_SWITCH_TO_H |
---|
6 | 6 | #define _ASM_POWERPC_SWITCH_TO_H |
---|
7 | 7 | |
---|
| 8 | +#include <linux/sched.h> |
---|
8 | 9 | #include <asm/reg.h> |
---|
9 | 10 | |
---|
10 | 11 | struct thread_struct; |
---|
.. | .. |
---|
21 | 22 | extern void switch_booke_debug_regs(struct debug_reg *new_debug); |
---|
22 | 23 | |
---|
23 | 24 | extern int emulate_altivec(struct pt_regs *); |
---|
| 25 | + |
---|
| 26 | +#ifdef CONFIG_PPC_BOOK3S_64 |
---|
| 27 | +void restore_math(struct pt_regs *regs); |
---|
| 28 | +#else |
---|
| 29 | +static inline void restore_math(struct pt_regs *regs) |
---|
| 30 | +{ |
---|
| 31 | +} |
---|
| 32 | +#endif |
---|
| 33 | + |
---|
| 34 | +void restore_tm_state(struct pt_regs *regs); |
---|
24 | 35 | |
---|
25 | 36 | extern void flush_all_to_thread(struct task_struct *); |
---|
26 | 37 | extern void giveup_all(struct task_struct *); |
---|
.. | .. |
---|
60 | 71 | { |
---|
61 | 72 | msr_check_and_clear(MSR_FP|MSR_VEC|MSR_VSX); |
---|
62 | 73 | } |
---|
| 74 | +#else |
---|
| 75 | +static inline void enable_kernel_vsx(void) |
---|
| 76 | +{ |
---|
| 77 | + BUILD_BUG(); |
---|
| 78 | +} |
---|
| 79 | + |
---|
| 80 | +static inline void disable_kernel_vsx(void) |
---|
| 81 | +{ |
---|
| 82 | + BUILD_BUG(); |
---|
| 83 | +} |
---|
63 | 84 | #endif |
---|
64 | 85 | |
---|
65 | 86 | #ifdef CONFIG_SPE |
---|
.. | .. |
---|
90 | 111 | t->thread.used_ebb = 0; |
---|
91 | 112 | #endif |
---|
92 | 113 | } |
---|
93 | | - |
---|
94 | | -extern int set_thread_uses_vas(void); |
---|
95 | 114 | |
---|
96 | 115 | extern int set_thread_tidr(struct task_struct *t); |
---|
97 | 116 | |
---|