Searched refs:SPIN_BUG_ON (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/locking/ |
H A D | spinlock_debug.c | 80 #define SPIN_BUG_ON(cond, lock, msg) if (unlikely(cond)) spin_bug(lock, msg) macro 85 SPIN_BUG_ON(READ_ONCE(lock->magic) != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_lock_before() 86 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before() 87 SPIN_BUG_ON(READ_ONCE(lock->owner_cpu) == raw_smp_processor_id(), in debug_spin_lock_before() 99 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_unlock() 100 SPIN_BUG_ON(!raw_spin_is_locked(lock), lock, "already unlocked"); in debug_spin_unlock() 101 SPIN_BUG_ON(lock->owner != current, lock, "wrong owner"); in debug_spin_unlock() 102 SPIN_BUG_ON(lock->owner_cpu != raw_smp_processor_id(), in debug_spin_unlock() 132 SPIN_BUG_ON(!ret, lock, "trylock failure on UP"); in do_raw_spin_trylock()
|