patch-2.4.19 linux-2.4.19/include/asm-i386/spinlock.h

Next file: linux-2.4.19/include/asm-i386/types.h
Previous file: linux-2.4.19/include/asm-i386/softirq.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-i386/spinlock.h linux-2.4.19/include/asm-i386/spinlock.h
@@ -5,7 +5,6 @@
 #include <asm/rwlock.h>
 #include <asm/page.h>
 #include <linux/config.h>
-#include <linux/stringify.h>
 
 extern int printk(const char * fmt, ...)
 	__attribute__ ((format (printf, 1, 2)));
@@ -57,16 +56,13 @@
 	"\n1:\t" \
 	"lock ; decb %0\n\t" \
 	"js 2f\n" \
-	".subsection 1\n" \
-	".ifndef _text_lock_" __stringify(KBUILD_BASENAME) "\n" \
-	"_text_lock_" __stringify(KBUILD_BASENAME) ":\n" \
-	".endif\n" \
+	LOCK_SECTION_START("") \
 	"2:\t" \
 	"cmpb $0,%0\n\t" \
 	"rep;nop\n\t" \
 	"jle 2b\n\t" \
 	"jmp 1b\n" \
-	".subsection 0\n"
+	LOCK_SECTION_END
 
 /*
  * This works. Despite all the confusion.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)