* [PATCH] powerpc: Align thread->fpr to 16 bytes
@ 2013-06-05 3:02 Anton Blanchard
0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2013-06-05 3:02 UTC (permalink / raw)
To: benh, paulus; +Cc: linuxppc-dev
On newer CPUs we use VSX loads and stores to the thread->fpr array.
For best performance we need to ensure 16 byte alignment.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
Index: b/arch/powerpc/include/asm/processor.h
===================================================================
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -200,7 +200,7 @@ struct thread_struct {
#endif
#endif
/* FP and VSX 0-31 register set */
- double fpr[32][TS_FPRWIDTH];
+ double fpr[32][TS_FPRWIDTH] __attribute__((aligned(16)));
struct {
unsigned int pad;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-05 3:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05 3:02 [PATCH] powerpc: Align thread->fpr to 16 bytes Anton Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox