linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* __switch_to test-and-branch ALTIVEC specific?
@ 2005-09-13 17:50 Marcelo Tosatti
  2005-09-13 19:05 ` Kumar Gala
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Marcelo Tosatti @ 2005-09-13 17:50 UTC (permalink / raw)
  To: linuxppc-dev, linux-ppc-embedded

Hi,

This test&branch looks AltiVec specific, any reason for not #ifdef'ing it
out?

--- arch/ppc/kernel/process.c.orig      2005-09-13 14:43:13.000000000 -0300
+++ arch/ppc/kernel/process.c   2005-09-13 14:43:51.000000000 -0300
@@ -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] 9+ messages in thread

end of thread, other threads:[~2005-09-18  1:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13 17:50 __switch_to test-and-branch ALTIVEC specific? Marcelo Tosatti
2005-09-13 19:05 ` Kumar Gala
2005-09-13 20:35   ` Marcelo Tosatti
2005-09-13 21:43     ` Kumar Gala
2005-09-18  1:31       ` Benjamin Herrenschmidt
2005-09-15  8:21     ` Segher Boessenkool
2005-09-18  1:31   ` Benjamin Herrenschmidt
2005-09-13 22:23 ` -dev and -embedded cross-posting Eugene Surovegin
2005-09-15 11:18 ` __switch_to test-and-branch ALTIVEC specific? Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).