diff options
author | Marcelo Tosatti <marcelo.tosatti@cyclades.com> | 2005-10-28 20:46:15 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-28 23:55:43 -0400 |
commit | 434cc69fbb02dd7ca64c5029dc6a6f9636f77e02 (patch) | |
tree | 09f88c57bb9a6fe1bd30516bfbc3a2877a6d08ac | |
parent | d5f7b06b036afc2cb250decb2c76b7f82c5de639 (diff) |
[PATCH] ppc32: #ifdef out ALTIVEC specific code in __switch_to
#ifdef out an ALTIVEC specific tweak in __switch_to()
Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/ppc/kernel/process.c | 2 |
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 |