diff options
author | Andi Kleen <ak@suse.de> | 2006-09-26 10:52:28 +0200 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 10:52:28 +0200 |
commit | b4062b16094038334d9bbadac0397a3fc9e981b0 (patch) | |
tree | e75506b979825010319f96a0868b71788ac856df | |
parent | 538b5b419c7ae39a4b2deb15278da36102e42346 (diff) | |
download | op-kernel-dev-b4062b16094038334d9bbadac0397a3fc9e981b0.zip op-kernel-dev-b4062b16094038334d9bbadac0397a3fc9e981b0.tar.gz |
[PATCH] Support patchable lock prefix for pure assembly files
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | include/asm-x86_64/alternative-asm.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86_64/alternative-asm.i b/include/asm-x86_64/alternative-asm.i new file mode 100644 index 0000000..e4041f4 --- /dev/null +++ b/include/asm-x86_64/alternative-asm.i @@ -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 |