From: Andi Kleen Date: Tue, 26 Sep 2006 08:52:28 +0000 (+0200) Subject: [PATCH] Support patchable lock prefix for pure assembly files X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4062b16094038334d9bbadac0397a3fc9e981b0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [PATCH] Support patchable lock prefix for pure assembly files Signed-off-by: Andi Kleen --- diff --git a/include/asm-x86_64/alternative-asm.i b/include/asm-x86_64/alternative-asm.i new file mode 100644 index 000000000000..e4041f4fa4dc --- /dev/null +++ b/include/asm-x86_64/alternative-asm.i @@ -0,0 +1,14 @@ +#include + +#ifdef CONFIG_SMP + .macro LOCK_PREFIX +1: lock + .section .smp_locks,"a" + .align 8 + .quad 1b + .previous + .endm +#else + .macro LOCK_PREFIX + .endm +#endif