diff options
author | phk <phk@FreeBSD.org> | 2003-11-15 18:33:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-11-15 18:33:54 +0000 |
commit | 1cf4c969195794a9a3d1ea20d5e6fc8aeeeb464c (patch) | |
tree | eadfa02afe53aee1e4d8ea9392e42856fbbeaf79 /sys | |
parent | d3fc111f85da524a553d8ccc342ace2d734cddba (diff) | |
download | FreeBSD-src-1cf4c969195794a9a3d1ea20d5e6fc8aeeeb464c.zip FreeBSD-src-1cf4c969195794a9a3d1ea20d5e6fc8aeeeb464c.tar.gz |
Rename the debugging mutex "callout_no_sleep" to "dont_sleep_in_callout".
Diffstat (limited to 'sys')
-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 8878500..738e615 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) { |