Skip to content

Commit

Permalink
x86/alternatives: No need for alternatives-asm.h to re-invent stuff a…
Browse files Browse the repository at this point in the history
…lready in asm.h

This at once also gets the alignment specification right for
x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <4B0FF8F80200007800022708@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Dec 2, 2009
1 parent 01be50a commit 99063c0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions arch/x86/include/asm/alternative-asm.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#ifdef __ASSEMBLY__

#ifdef CONFIG_X86_32
# define X86_ALIGN .long
#else
# define X86_ALIGN .quad
#endif
#include <asm/asm.h>

#ifdef CONFIG_SMP
.macro LOCK_PREFIX
1: lock
.section .smp_locks,"a"
.align 4
X86_ALIGN 1b
_ASM_ALIGN
_ASM_PTR 1b
.previous
.endm
#else
Expand Down

0 comments on commit 99063c0

Please sign in to comment.