Commit 434cc69f authored by Marcelo Tosatti's avatar Marcelo Tosatti Committed by Paul Mackerras

[PATCH] ppc32: #ifdef out ALTIVEC specific code in __switch_to

#ifdef out an ALTIVEC specific tweak in __switch_to()
Signed-off-by: default avatarMarcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d5f7b06b
...@@ -347,11 +347,13 @@ struct task_struct *__switch_to(struct task_struct *prev, ...@@ -347,11 +347,13 @@ struct task_struct *__switch_to(struct task_struct *prev,
#endif /* CONFIG_SPE */ #endif /* CONFIG_SPE */
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
#ifdef CONFIG_ALTIVEC
/* Avoid the trap. On smp this this never happens since /* Avoid the trap. On smp this this never happens since
* we don't set last_task_used_altivec -- Cort * we don't set last_task_used_altivec -- Cort
*/ */
if (new->thread.regs && last_task_used_altivec == new) if (new->thread.regs && last_task_used_altivec == new)
new->thread.regs->msr |= MSR_VEC; new->thread.regs->msr |= MSR_VEC;
#endif
#ifdef CONFIG_SPE #ifdef CONFIG_SPE
/* Avoid the trap. On smp this this never happens since /* Avoid the trap. On smp this this never happens since
* we don't set last_task_used_spe * we don't set last_task_used_spe
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment