From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: linuxppc-dev@ozlabs.org,
linux-ppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: __switch_to test-and-branch ALTIVEC specific?
Date: Tue, 13 Sep 2005 14:50:28 -0300 [thread overview]
Message-ID: <20050913175028.GB14889@dmt.cnet> (raw)
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
next reply other threads:[~2005-09-13 17:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-13 17:50 Marcelo Tosatti [this message]
2005-09-13 19:05 ` __switch_to test-and-branch ALTIVEC specific? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050913175028.GB14889@dmt.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.