summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2010-04-01 01:23:36 +0000
committerlstewart <lstewart@FreeBSD.org>2010-04-01 01:23:36 +0000
commitf1881c310ccf3b339f6cd2abc64b1e2aecffbb25 (patch)
treecb8824c44ed20772efa36f644fdda8f0db4c6646 /sys/kern
parent4aab292692d40ec1a2434f013498cf12da9a3e41 (diff)
downloadFreeBSD-src-f1881c310ccf3b339f6cd2abc64b1e2aecffbb25.zip
FreeBSD-src-f1881c310ccf3b339f6cd2abc64b1e2aecffbb25.tar.gz
According to SLEEP(9), msleep() is deprecated in favour of mtx_sleep().
Sponsored by: FreeBSD Foundation Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch) Approved by: kmacy (mentor) MFC after: 1 month
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_alq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c
index 93d00c0..8a92dbe 100644
--- a/sys/kern/kern_alq.c
+++ b/sys/kern/kern_alq.c
@@ -191,7 +191,7 @@ ald_daemon(void)
for (;;) {
while ((alq = LIST_FIRST(&ald_active)) == NULL &&
!ald_shutingdown)
- msleep(&ald_active, &ald_mtx, PWAIT, "aldslp", 0);
+ mtx_sleep(&ald_active, &ald_mtx, PWAIT, "aldslp", 0);
/* Don't shutdown until all active ALQs are flushed. */
if (ald_shutingdown && alq == NULL) {
@@ -234,12 +234,12 @@ ald_shutdown(void *arg, int howto)
/*
* Wake ald_daemon so that it exits. It won't be able to do
- * anything until we msleep because we hold the ald_mtx.
+ * anything until we mtx_sleep because we hold the ald_mtx.
*/
wakeup(&ald_active);
/* Wait for ald_daemon to exit. */
- msleep(ald_proc, &ald_mtx, PWAIT, "aldslp", 0);
+ mtx_sleep(ald_proc, &ald_mtx, PWAIT, "aldslp", 0);
ALD_UNLOCK();
}
OpenPOWER on IntegriCloud