From 1cf4c969195794a9a3d1ea20d5e6fc8aeeeb464c Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 15 Nov 2003 18:33:54 +0000 Subject: Rename the debugging mutex "callout_no_sleep" to "dont_sleep_in_callout". --- sys/kern/kern_timeout.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern/kern_timeout.c') 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) { -- cgit v1.1