summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/processor.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-06-05 13:02:26 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 17:04:30 +1000
commit475e68cfdde39e6d95055999b0cb42fdb2bea0ca (patch)
tree7fc4220b54705f3ad69e2f86ec27539ef99db644 /arch/powerpc/include/asm/processor.h
parent1b7e0cbe4969dd4c2945b2fb8d6881a03b4d0ac7 (diff)
downloadop-kernel-dev-475e68cfdde39e6d95055999b0cb42fdb2bea0ca.zip
op-kernel-dev-475e68cfdde39e6d95055999b0cb42fdb2bea0ca.tar.gz
powerpc: Align thread->fpr to 16 bytes
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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
-rw-r--r--arch/powerpc/include/asm/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index 2b5a39c..9fe1129 100644
--- 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;
OpenPOWER on IntegriCloud