summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2007-06-05 14:20:13 +0000
committerkib <kib@FreeBSD.org>2007-06-05 14:20:13 +0000
commite8f1c1e028e4bfc1915e4568c436910df6f3e2aa (patch)
treee5296a27dfd8af78f1cf13268e365703238f329b /sys/kern/kern_mutex.c
parentb5a10ff9184c6859b330d99baa4835971f0e6abf (diff)
downloadFreeBSD-src-e8f1c1e028e4bfc1915e4568c436910df6f3e2aa.zip
FreeBSD-src-e8f1c1e028e4bfc1915e4568c436910df6f3e2aa.tar.gz
Restore non-SMP build.
Reviewed by: attilio
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index ae4a36b..b717454 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -439,7 +439,7 @@ _mtx_lock_spin_failed(struct mtx *m)
/* If the mutex is unlocked, try again. */
if (td == NULL)
return;
-#ifdef SMP
+
printf( "spin lock %p (%s) held by %p (tid %d) too long\n",
m, m->lock_object.lo_name, td, td->td_tid);
#ifdef WITNESS
@@ -448,6 +448,7 @@ _mtx_lock_spin_failed(struct mtx *m)
panic("spin lock held too long");
}
+#ifdef SMP
/*
* _mtx_lock_spin: the tougher part of acquiring an MTX_SPIN lock.
*
OpenPOWER on IntegriCloud