patch-2.4.2 linux/include/asm-s390/smplock.h

Next file: linux/include/asm-s390/socket.h
Previous file: linux/include/asm-s390/smp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/include/asm-s390/smplock.h linux/include/asm-s390/smplock.h
@@ -7,9 +7,11 @@
  */
 
 #include <linux/interrupt.h>
-#include <asm/spinlock.h>
+#include <linux/spinlock.h>
 
 extern spinlock_t kernel_flag;
+
+#define kernel_locked()                spin_is_locked(&kernel_flag)
 
 /*
  * Release global kernel lock and global interrupt lock

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