mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ix86: improve cmpxchg8b_emu.S
@ 2014-09-24  7:40 Jan Beulich
  2014-10-08  8:09 ` [tip:x86/asm] x86: Improve cmpxchg8b_emu.S tip-bot for Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2014-09-24  7:40 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

- don't include unneeded headers
- drop redundant entry point label
- complete unwind annotations
- use .L prefix on local labels to not clutter the symbol table

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 arch/x86/lib/cmpxchg8b_emu.S |   20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

--- 3.17-rc6/arch/x86/lib/cmpxchg8b_emu.S
+++ 3.17-rc6-ix86-improve-cmpxchg8b_emu/arch/x86/lib/cmpxchg8b_emu.S
@@ -7,11 +7,8 @@
  */
 
 #include <linux/linkage.h>
-#include <asm/alternative-asm.h>
-#include <asm/frame.h>
 #include <asm/dwarf2.h>
 
-
 .text
 
 /*
@@ -30,27 +27,28 @@ CFI_STARTPROC
 # set the whole ZF thing (caller will just compare
 # eax:edx with the expected value)
 #
-cmpxchg8b_emu:
-	pushfl
+	pushfl_cfi
 	cli
 
 	cmpl  (%esi), %eax
-	jne not_same
+	jne .Lnot_same
 	cmpl 4(%esi), %edx
-	jne half_same
+	jne .Lhalf_same
 
 	movl %ebx,  (%esi)
 	movl %ecx, 4(%esi)
 
-	popfl
+	CFI_REMEMBER_STATE
+	popfl_cfi
 	ret
 
- not_same:
+	CFI_RESTORE_STATE
+.Lnot_same:
 	movl  (%esi), %eax
- half_same:
+.Lhalf_same:
 	movl 4(%esi), %edx
 
-	popfl
+	popfl_cfi
 	ret
 
 CFI_ENDPROC




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-08  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24  7:40 [PATCH] ix86: improve cmpxchg8b_emu.S Jan Beulich
2014-10-08  8:09 ` [tip:x86/asm] x86: Improve cmpxchg8b_emu.S tip-bot for Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome