diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-11-15 18:33:54 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-11-15 18:33:54 +0000 |
| commit | d87526cf4357cfb8cab0c16ec1ff7deecde1bf84 (patch) | |
| tree | eadfa02afe53aee1e4d8ea9392e42856fbbeaf79 /sys/kern/kern_timeout.c | |
| parent | f7d7038aa469f820066f9a52e58ff8089729af92 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_timeout.c')
| -rw-r--r-- | sys/kern/kern_timeout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 88785008d4f8..738e615048ad 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -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) { |
