From: Marcelo Tosatti #ifdef out an ALTIVEC specific tweak in __switch_to() Signed-off-by: Marcelo Tosatti Signed-off-by: Andrew Morton --- arch/ppc/kernel/process.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN arch/ppc/kernel/process.c~ppc32-ifdef-out-altivec-specific-code-in-__switch_to arch/ppc/kernel/process.c --- 25/arch/ppc/kernel/process.c~ppc32-ifdef-out-altivec-specific-code-in-__switch_to Tue Sep 20 16:02:57 2005 +++ 25-akpm/arch/ppc/kernel/process.c Tue Sep 20 16:02:57 2005 @@ -287,11 +287,13 @@ struct task_struct *__switch_to(struct t #endif /* CONFIG_SPE */ #endif /* CONFIG_SMP */ +#ifdef CONFIG_ALTIVEC /* Avoid the trap. On smp this this never happens since * we don't set last_task_used_altivec -- Cort */ if (new->thread.regs && last_task_used_altivec == new) new->thread.regs->msr |= MSR_VEC; +#endif #ifdef CONFIG_SPE /* Avoid the trap. On smp this this never happens since * we don't set last_task_used_spe _