svn commit: r285667 - head/sys/kern
Mark Johnston
markj at FreeBSD.org
Sat Jul 18 04:38:12 UTC 2015
Author: markj
Date: Sat Jul 18 04:38:11 2015
New Revision: 285667
URL: https://svnweb.freebsd.org/changeset/base/285667
Log:
Fix the !KDTRACE_HOOKS build.
X-MFC-With: r285664
Modified:
head/sys/kern/kern_mutex.c
Modified: head/sys/kern/kern_mutex.c
==============================================================================
--- head/sys/kern/kern_mutex.c Sat Jul 18 03:14:49 2015 (r285666)
+++ head/sys/kern/kern_mutex.c Sat Jul 18 04:38:11 2015 (r285667)
@@ -630,8 +630,10 @@ _mtx_lock_spin_cookie(volatile uintptr_t
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 */
More information about the svn-src-all
mailing list