diff options
author | jhb <jhb@FreeBSD.org> | 2002-05-23 04:14:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-05-23 04:14:18 +0000 |
commit | bd383063f67bf97cd3b117248ba8410d7941ad01 (patch) | |
tree | 846857610b21c78c808bac2e375369460728e177 /sys/kern/kern_synch.c | |
parent | 2d4c041eb3cc6407180584b438ef3d5cd2989b29 (diff) | |
download | FreeBSD-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.c | 2 |
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); |