kernel: Also push lock caller in acquire_spinlock_nocheck.

This commit is contained in:
Michael Lotz
2014-11-02 00:04:28 +01:00
parent 41418981f4
commit eac94f5db9
+6
View File
@@ -428,6 +428,10 @@ acquire_spinlock_nocheck(spinlock *lock)
if (atomic_get_and_set(&lock->lock, 1) == 0) if (atomic_get_and_set(&lock->lock, 1) == 0)
break; break;
} }
# if DEBUG_SPINLOCKS
push_lock_caller(arch_debug_get_caller(), lock);
# endif
#endif #endif
} else { } else {
#if DEBUG_SPINLOCKS #if DEBUG_SPINLOCKS
@@ -437,6 +441,8 @@ acquire_spinlock_nocheck(spinlock *lock)
"on non-SMP system (last caller: %p, value %" B_PRIx32 ")", "on non-SMP system (last caller: %p, value %" B_PRIx32 ")",
lock, find_lock_caller(lock), oldValue); lock, find_lock_caller(lock), oldValue);
} }
push_lock_caller(arch_debug_get_caller(), lock);
#endif #endif
} }
} }