Skip to content

Commit

Permalink
[PATCH] ppc32: #ifdef out ALTIVEC specific code in __switch_to
Browse files Browse the repository at this point in the history
#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>
  • Loading branch information
Marcelo Tosatti authored and Paul Mackerras committed Oct 29, 2005
1 parent d5f7b06 commit 434cc69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/ppc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 434cc69

Please sign in to comment.