summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-11-02 18:34:31 +0000
committerjhb <jhb@FreeBSD.org>2010-11-02 18:34:31 +0000
commit6aafe24a5f1955338a76273a8a01f02fdab09334 (patch)
tree0e288e88622f650415fced6477a074a63447f393 /sys/kern
parent5de2d0587227f6acbb1a2aa1aaa368f1e45b9865 (diff)
downloadFreeBSD-src-6aafe24a5f1955338a76273a8a01f02fdab09334.zip
FreeBSD-src-6aafe24a5f1955338a76273a8a01f02fdab09334.tar.gz
Tweak the waitchannel messages for the dead lock detection kthread. Use
a shorter message (userland generally only sees the first 6 to 8 characters) when waiting for the allproc lock. Use "-" when idle to math the behavior of other kthreads. Reviewed by: attilio MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 192ec60..1754f7b 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -195,7 +195,7 @@ deadlkres(void)
panic("%s: possible deadlock detected on allproc_lock\n",
__func__);
tryl++;
- pause("allproc_lock deadlkres", sleepfreq * hz);
+ pause("allproc", sleepfreq * hz);
continue;
}
tryl = 0;
@@ -288,7 +288,7 @@ deadlkres(void)
sx_sunlock(&allproc_lock);
/* Sleep for sleepfreq seconds. */
- pause("deadlkres", sleepfreq * hz);
+ pause("-", sleepfreq * hz);
}
}
OpenPOWER on IntegriCloud