patch-2.4.20 linux-2.4.20/include/asm-parisc/smplock.h

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

diff -urN linux-2.4.19/include/asm-parisc/smplock.h linux-2.4.20/include/asm-parisc/smplock.h
@@ -8,6 +8,8 @@
 
 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)