]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[POWERPC] system call micro optimisation
authorAnton Blanchard <anton@samba.org>
Sat, 10 Jun 2006 15:15:55 +0000 (01:15 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 15 Jun 2006 09:31:26 +0000 (19:31 +1000)
In the syscall path we currently have:

       crclr   so
       mfcr    r9

If we shift the crclr up we can avoid a stall on some CPUs.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/entry_64.S

index 19ad5c6b18185309492e30640d2927e7998a50d8..221062c960c99ae23578e8942ee668e9214d27f0 100644 (file)
@@ -57,6 +57,7 @@ system_call_common:
        beq-    1f
        ld      r1,PACAKSAVE(r13)
 1:     std     r10,0(r1)
+       crclr   so
        std     r11,_NIP(r1)
        std     r12,_MSR(r1)
        std     r0,GPR0(r1)
@@ -75,7 +76,6 @@ system_call_common:
        std     r11,GPR11(r1)
        std     r11,GPR12(r1)
        std     r9,GPR13(r1)
-       crclr   so
        mfcr    r9
        mflr    r10
        li      r11,0xc01