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 /include/asm-x86_64/alternative-asm.i | |
parent | [PATCH] Document backtracer selection options (diff) | |
download | linux-b4062b16094038334d9bbadac0397a3fc9e981b0.tar.xz linux-b4062b16094038334d9bbadac0397a3fc9e981b0.zip |
[PATCH] Support patchable lock prefix for pure assembly files
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-x86_64/alternative-asm.i')
-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 000000000000..e4041f4fa4dc --- /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 |