Fix the !KDTRACE_HOOKS build.
X-MFC-With: r285664
This commit is contained in:
parent
c283159997
commit
c6d48c8752
@ -630,8 +630,10 @@ _mtx_lock_spin_cookie(volatile uintptr_t *c, uintptr_t tid, int opts,
|
||||
|
||||
LOCKSTAT_PROFILE_OBTAIN_LOCK_SUCCESS(LS_MTX_SPIN_LOCK_ACQUIRE, m,
|
||||
contested, waittime, (file), (line));
|
||||
#ifdef KDTRACE_HOOKS
|
||||
if (spin_time != 0)
|
||||
LOCKSTAT_RECORD1(LS_MTX_SPIN_LOCK_SPIN, m, spin_time);
|
||||
#endif
|
||||
}
|
||||
#endif /* SMP */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user