mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
[PATCH] Support patchable lock prefix for pure assembly files
Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
538b5b419c
commit
b4062b1609
14
include/asm-x86_64/alternative-asm.i
Normal file
14
include/asm-x86_64/alternative-asm.i
Normal file
@ -0,0 +1,14 @@
|
||||
#include <linux/config.h>
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
.macro LOCK_PREFIX
|
||||
1: lock
|
||||
.section .smp_locks,"a"
|
||||
.align 8
|
||||
.quad 1b
|
||||
.previous
|
||||
.endm
|
||||
#else
|
||||
.macro LOCK_PREFIX
|
||||
.endm
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user