summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2009-03-12 11:47:13 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-12 12:04:47 +0100
commitdd1ef4ec4721ddc0a1f2b73a4f67930cb320665c (patch)
tree75cdd414ecdcfe7d2abc72da8444f54631a00e4e /arch/x86/lib
parentx86-64: move save_paranoid into .kprobes.text (diff)
downloadlinux-dd1ef4ec4721ddc0a1f2b73a4f67930cb320665c.tar.xz
linux-dd1ef4ec4721ddc0a1f2b73a4f67930cb320665c.zip
x86-64: remove unnecessary spill/reload of rbx from memcpy
Impact: micro-optimization This should slightly improve its performance. Signed-off-by: Jan Beulich <jbeulich@novell.com> LKML-Reference: <49B8F641.76E4.0078.0@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/memcpy_64.S7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/lib/memcpy_64.S b/arch/x86/lib/memcpy_64.S
index c22981fa2f3a..10c067694af4 100644
--- a/arch/x86/lib/memcpy_64.S
+++ b/arch/x86/lib/memcpy_64.S
@@ -33,9 +33,6 @@ ENDPROC(memcpy_c)
ENTRY(__memcpy)
ENTRY(memcpy)
CFI_STARTPROC
- pushq %rbx
- CFI_ADJUST_CFA_OFFSET 8
- CFI_REL_OFFSET rbx, 0
movq %rdi,%rax
movl %edx,%ecx
@@ -102,11 +99,7 @@ ENTRY(memcpy)
jnz .Lloop_1
.Lende:
- popq %rbx
- CFI_ADJUST_CFA_OFFSET -8
- CFI_RESTORE rbx
ret
-.Lfinal:
CFI_ENDPROC
ENDPROC(memcpy)
ENDPROC(__memcpy)