Index: kernel/generic/include/synch/spinlock.h
===================================================================
--- kernel/generic/include/synch/spinlock.h	(revision d7da428424c0f1c2c3f084c6836535553e191008)
+++ kernel/generic/include/synch/spinlock.h	(revision 3c664d678b80ac2e49e94051f441bd812aa3f0d5)
@@ -115,4 +115,6 @@
 extern void spinlock_lock_debug(spinlock_t *);
 extern void spinlock_unlock_debug(spinlock_t *);
+extern bool spinlock_locked(spinlock_t *);
+extern bool spinlock_unlocked(spinlock_t *);
 
 /** Unlock spinlock
@@ -177,4 +179,6 @@
 #define spinlock_trylock(lock)  (preemption_disable(), 1)
 #define spinlock_unlock(lock)   preemption_enable()
+#define spinlock_locked(lock)	1
+#define spinlock_unlocked(lock)	1
 
 #define DEADLOCK_PROBE_INIT(pname)
@@ -283,4 +287,6 @@
 extern void irq_spinlock_pass(irq_spinlock_t *, irq_spinlock_t *);
 extern void irq_spinlock_exchange(irq_spinlock_t *, irq_spinlock_t *);
+extern bool irq_spinlock_locked(irq_spinlock_t *);
+extern bool irq_spinlock_unlocked(irq_spinlock_t *);
 
 #endif
