summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-05-23 04:14:18 +0000
committerjhb <jhb@FreeBSD.org>2002-05-23 04:14:18 +0000
commitbd383063f67bf97cd3b117248ba8410d7941ad01 (patch)
tree846857610b21c78c808bac2e375369460728e177 /sys/kern/kern_synch.c
parent2d4c041eb3cc6407180584b438ef3d5cd2989b29 (diff)
downloadFreeBSD-src-bd383063f67bf97cd3b117248ba8410d7941ad01.zip
FreeBSD-src-bd383063f67bf97cd3b117248ba8410d7941ad01.tar.gz
Minor nit: get p pointer in msleep() from td->td_proc (where
td == curthread) rather than from curproc.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index bb2d1e4..eb98bae 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -416,8 +416,8 @@ msleep(ident, mtx, priority, wmesg, timo)
int priority, timo;
const char *wmesg;
{
- struct proc *p = curproc;
struct thread *td = curthread;
+ struct proc *p = td->td_proc;
int sig, catch = priority & PCATCH;
int rval = 0;
WITNESS_SAVE_DECL(mtx);
OpenPOWER on IntegriCloud