__switch_to test-and-branch ALTIVEC specific?
Marcelo Tosatti
marcelo.tosatti at cyclades.com
Wed Sep 14 03:50:28 EST 2005
Hi,
This test&branch looks AltiVec specific, any reason for not #ifdef'ing it
out?
--- arch/ppc/kernel/process.c.orig 2005-09-13 14:43:13.000000000 -0300
+++ arch/ppc/kernel/process.c 2005-09-13 14:43:51.000000000 -0300
@@ -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
More information about the Linuxppc-embedded
mailing list