powerpc: Create context switch helpers save_sprs() and restore_sprs()
[deliverable/linux.git] / arch / powerpc / include / asm / switch_to.h
index 15cca17cba4b9fe47c5598006f9e61214e20295c..33a071d24ba802b976a790237effffb9a6e886c6 100644 (file)
@@ -15,17 +15,6 @@ extern struct task_struct *__switch_to(struct task_struct *,
 struct thread_struct;
 extern struct task_struct *_switch(struct thread_struct *prev,
                                   struct thread_struct *next);
-#ifdef CONFIG_PPC_BOOK3S_64
-static inline void save_early_sprs(struct thread_struct *prev)
-{
-       if (cpu_has_feature(CPU_FTR_ARCH_207S))
-               prev->tar = mfspr(SPRN_TAR);
-       if (cpu_has_feature(CPU_FTR_DSCR))
-               prev->dscr = mfspr(SPRN_DSCR);
-}
-#else
-static inline void save_early_sprs(struct thread_struct *prev) {}
-#endif
 
 extern void enable_kernel_fp(void);
 extern void enable_kernel_altivec(void);
This page took 0.026441 seconds and 5 git commands to generate.