diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-27 17:23:29 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-27 17:23:29 +0000 |
commit | 9081d442434a29679b0bafe249708a1bd48bbfde (patch) | |
tree | a0597a39b0c2d93af237d119ce7da913a8a44962 /sys/dev/hptmv/entry.c | |
parent | 3a7dab48bd395f66d9af79696af0534c63ae92f2 (diff) | |
download | FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.zip FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.tar.gz |
Use pause() rather than tsleep() on stack variables and function pointers.
Diffstat (limited to 'sys/dev/hptmv/entry.c')
-rw-r--r-- | sys/dev/hptmv/entry.c | 6 |
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 */ } } |