LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [patch 05/43] ppc32: #ifdef out ALTIVEC specific code in __switch_to
@ 2005-10-29  0:46 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2005-10-29  0:46 UTC (permalink / raw)
  To: paulus; +Cc: akpm, linuxppc-dev, linuxppc64-dev


From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>

#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>
---

 arch/ppc/kernel/process.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN arch/ppc/kernel/process.c~ppc32-ifdef-out-altivec-specific-code-in-__switch_to arch/ppc/kernel/process.c
--- devel/arch/ppc/kernel/process.c~ppc32-ifdef-out-altivec-specific-code-in-__switch_to	2005-10-28 17:44:02.000000000 -0700
+++ devel-akpm/arch/ppc/kernel/process.c	2005-10-28 17:44:02.000000000 -0700
@@ -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
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-29  0:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-29  0:46 [patch 05/43] ppc32: #ifdef out ALTIVEC specific code in __switch_to akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox