]> Pileus Git - ~andy/linux/commitdiff
powerpc: Align thread->fpr to 16 bytes
authorAnton Blanchard <anton@samba.org>
Wed, 5 Jun 2013 03:02:26 +0000 (13:02 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jun 2013 07:04:30 +0000 (17:04 +1000)
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>
arch/powerpc/include/asm/processor.h

index 2b5a39c67df41ef5d91c0899b86d4bb8230ba7bf..9fe1129efa02db9065a3c64fe24a82ae6e646b55 100644 (file)
@@ -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;