diff options
author | jhb <jhb@FreeBSD.org> | 2002-01-15 14:20:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-01-15 14:20:33 +0000 |
commit | 9f04e2aaf9d8f047ec3b7cb28c04622a0fc47446 (patch) | |
tree | 53b9237bb122b82247c7eaa659712fe6c98aa7d1 /sys | |
parent | 873822cd833c6f125d95130a1fe85df82b78fe3b (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/kern/kern_mutex.c | 4 | ||||
-rw-r--r-- | sys/kern/subr_turnstile.c | 4 |
2 files changed, 4 insertions, 4 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) diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 2c5217b..6167185 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.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) |