From: Marcelo Tosatti Date: Sat, 29 Oct 2005 00:46:15 +0000 (-0700) Subject: [PATCH] ppc32: #ifdef out ALTIVEC specific code in __switch_to X-Git-Tag: v2.6.15-rc1~59^2~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=434cc69fbb02dd7ca64c5029dc6a6f9636f77e02;p=linux-2.6-omap-h63xx.git [PATCH] ppc32: #ifdef out ALTIVEC specific code in __switch_to #ifdef out an ALTIVEC specific tweak in __switch_to() Signed-off-by: Marcelo Tosatti Signed-off-by: Andrew Morton Signed-off-by: Paul Mackerras --- diff --git a/arch/ppc/kernel/process.c b/arch/ppc/kernel/process.c index 78ea10197a0..cb1c7b92f8c 100644 --- a/arch/ppc/kernel/process.c +++ b/arch/ppc/kernel/process.c @@ -347,11 +347,13 @@ struct task_struct *__switch_to(struct task_struct *prev, #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