summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-01-15 14:20:33 +0000
committerjhb <jhb@FreeBSD.org>2002-01-15 14:20:33 +0000
commit9f04e2aaf9d8f047ec3b7cb28c04622a0fc47446 (patch)
tree53b9237bb122b82247c7eaa659712fe6c98aa7d1 /sys/kern/kern_mutex.c
parent873822cd833c6f125d95130a1fe85df82b78fe3b (diff)
downloadFreeBSD-src-9f04e2aaf9d8f047ec3b7cb28c04622a0fc47446.zip
FreeBSD-src-9f04e2aaf9d8f047ec3b7cb28c04622a0fc47446.tar.gz
Bump the limits for determining if we've held a spinlock too long as they
seem to be too short for the 500 Mhz DS20 I'm testing on. The rather arbitrary numbers are rather bogus anyways. We should probably have variables for these limits that are calibrated in the MD startup code somehow.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 2c5217b..6167185 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -433,9 +433,9 @@ _mtx_lock_spin(struct mtx *m, int opts, const char *file, int line)
/* Give interrupts a chance while we spin. */
critical_exit();
while (m->mtx_lock != MTX_UNOWNED) {
- if (i++ < 1000000)
+ if (i++ < 10000000)
continue;
- if (i++ < 6000000)
+ if (i++ < 60000000)
DELAY(1);
#ifdef DDB
else if (!db_active)
OpenPOWER on IntegriCloud