From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 11 Jun 2006 01:15:55 +1000 From: Anton Blanchard To: linuxppc-dev@ozlabs.org Subject: [PATCH] powerpc: system call micro optimisation Message-ID: <20060610151555.GV23891@krispykreme> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- Index: kernel/arch/powerpc/kernel/entry_64.S =================================================================== --- kernel.orig/arch/powerpc/kernel/entry_64.S 2006-04-26 08:03:05.380651922 -0500 +++ kernel/arch/powerpc/kernel/entry_64.S 2006-04-26 08:03:28.076523958 -0500 @@ -59,6 +59,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) @@ -77,7 +78,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