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
- Lines: 13
- Date:
Tue Feb 13 14:13:44 2001
- Orig file:
v2.4.1/linux/include/asm-s390/smplock.h
- Orig date:
Fri May 12 11:41:44 2000
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)