summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptmv/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hptmv/entry.c')
-rw-r--r--sys/dev/hptmv/entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c
index 0831743..bab49a8 100644
--- a/sys/dev/hptmv/entry.c
+++ b/sys/dev/hptmv/entry.c
@@ -2357,7 +2357,7 @@ static void hpt_worker_thread(void)
#if (__FreeBSD_version < 500000)
YIELD_THREAD;
#else
- tsleep((caddr_t)hpt_worker_thread, PPAUSE, "sched", 1);
+ pause("sched", 1);
#endif
if (SIGISMEMBER(curproc->p_siglist, SIGSTOP)) {
/* abort rebuilding process. */
@@ -2391,7 +2391,7 @@ static void hpt_worker_thread(void)
/*
#ifdef DEBUG
if (SIGISMEMBER(curproc->p_siglist, SIGSTOP))
- tsleep((caddr_t)hpt_worker_thread, PPAUSE, "hptrdy", 2*hz);
+ pause("hptrdy", 2*hz);
#endif
*/
#if (__FreeBSD_version >= 500043)
@@ -2399,7 +2399,7 @@ static void hpt_worker_thread(void)
#else
kproc_suspend_loop(curproc);
#endif
- tsleep((caddr_t)hpt_worker_thread, PPAUSE, "hptrdy", 2*hz); /* wait for something to do */
+ pause("hptrdy", 2*hz); /* wait for something to do */
}
}
OpenPOWER on IntegriCloud