diff options
author | Anton Blanchard <anton@samba.org> | 2006-06-10 17:15:55 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-15 11:31:26 +0200 |
commit | bd19c8994a828e70b5472f0ce9df5831c6c3db84 (patch) | |
tree | 5462c6d574b995084aa9ed4472257851c4b6ad54 /arch | |
parent | [POWERPC] Fix HV bit handling on non partitioned machines (diff) | |
download | linux-bd19c8994a828e70b5472f0ce9df5831c6c3db84.tar.xz linux-bd19c8994a828e70b5472f0ce9df5831c6c3db84.zip |
[POWERPC] system call micro optimisation
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 19ad5c6b1818..221062c960c9 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -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 |