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:
parent
873822cd83
commit
9f04e2aaf9
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user