mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Rename the debugging mutex "callout_no_sleep" to "dont_sleep_in_callout".
This commit is contained in:
parent
f7d7038aa4
commit
d87526cf43
1 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ struct callout_tailq *callwheel;
|
|||
int softticks; /* Like ticks, but for softclock(). */
|
||||
struct mtx callout_lock;
|
||||
#ifdef DIAGNOSTIC
|
||||
struct mtx callout_dont_sleep;
|
||||
struct mtx dont_sleep_in_callout;
|
||||
#endif
|
||||
|
||||
static struct callout *nextsoftcheck; /* Next callout to be checked. */
|
||||
|
|
@ -124,7 +124,7 @@ kern_timeout_callwheel_init(void)
|
|||
}
|
||||
mtx_init(&callout_lock, "callout", NULL, MTX_SPIN | MTX_RECURSE);
|
||||
#ifdef DIAGNOSTIC
|
||||
mtx_init(&callout_dont_sleep, "callout_dont_sleep", NULL, MTX_DEF);
|
||||
mtx_init(&dont_sleep_in_callout, "dont_sleep_in_callout", NULL, MTX_DEF);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -220,11 +220,11 @@ softclock(void *dummy)
|
|||
}
|
||||
#ifdef DIAGNOSTIC
|
||||
binuptime(&bt1);
|
||||
mtx_lock(&callout_dont_sleep);
|
||||
mtx_lock(&dont_sleep_in_callout);
|
||||
#endif
|
||||
c_func(c_arg);
|
||||
#ifdef DIAGNOSTIC
|
||||
mtx_unlock(&callout_dont_sleep);
|
||||
mtx_unlock(&dont_sleep_in_callout);
|
||||
binuptime(&bt2);
|
||||
bintime_sub(&bt2, &bt1);
|
||||
if (bt2.frac > maxdt) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue