summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/smplock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/smplock.h')
-rw-r--r--include/asm-sparc64/smplock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-sparc64/smplock.h b/include/asm-sparc64/smplock.h
index 5791e3c7a..6b3c900de 100644
--- a/include/asm-sparc64/smplock.h
+++ b/include/asm-sparc64/smplock.h
@@ -9,6 +9,8 @@
extern spinlock_t kernel_flag;
+#define kernel_locked() spin_is_locked(&kernel_flag)
+
/*
* Release global kernel lock and global interrupt lock
*/