[PATCH for review] [37/145] x86_64: Support patchable lock prefix for pure assembly files

From: Andi Kleen
Date: Thu Aug 10 2006 - 16:18:25 EST


r

Signed-off-by: Andi Kleen <ak@xxxxxxx>

---
include/asm-x86_64/alternative-asm.i | 14 ++++++++++++++
1 files changed, 14 insertions(+)

Index: linux/include/asm-x86_64/alternative-asm.i
===================================================================
--- /dev/null
+++ linux/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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/