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.
This commit is contained in:
jhb 2002-01-15 14:20:33 +00:00
parent 873822cd83
commit 9f04e2aaf9
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)