aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc/kernel/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/kernel/process.c b/arch/ppc/kernel/process.c
index 78ea10197a0b..cb1c7b92f8c6 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,
347#endif /* CONFIG_SPE */ 347#endif /* CONFIG_SPE */
348#endif /* CONFIG_SMP */ 348#endif /* CONFIG_SMP */
349 349
350#ifdef CONFIG_ALTIVEC
350 /* Avoid the trap. On smp this this never happens since 351 /* Avoid the trap. On smp this this never happens since
351 * we don't set last_task_used_altivec -- Cort 352 * we don't set last_task_used_altivec -- Cort
352 */ 353 */
353 if (new->thread.regs && last_task_used_altivec == new) 354 if (new->thread.regs && last_task_used_altivec == new)
354 new->thread.regs->msr |= MSR_VEC; 355 new->thread.regs->msr |= MSR_VEC;
356#endif
355#ifdef CONFIG_SPE 357#ifdef CONFIG_SPE
356 /* Avoid the trap. On smp this this never happens since 358 /* Avoid the trap. On smp this this never happens since
357 * we don't set last_task_used_spe 359 * we don't set last_task_used_spe