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

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

diff -urN linux-2.4.18/include/asm-i386/smplock.h linux-2.4.19/include/asm-i386/smplock.h
@@ -8,7 +8,8 @@
 #include <linux/sched.h>
 #include <asm/current.h>
 
-extern spinlock_t kernel_flag;
+extern spinlock_cacheline_t kernel_flag_cacheline;  
+#define kernel_flag kernel_flag_cacheline.lock      
 
 #define kernel_locked()		spin_is_locked(&kernel_flag)
 
@@ -59,7 +60,7 @@
 static __inline__ void unlock_kernel(void)
 {
 	if (current->lock_depth < 0)
-		BUG();
+		out_of_line_bug();
 #if 1
 	if (--current->lock_depth < 0)
 		spin_unlock(&kernel_flag);

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