summaryrefslogtreecommitdiff
path: root/sys/kern/kern_kse.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2004-08-31 07:34:54 +0000
committerJulian Elischer <julian@FreeBSD.org>2004-08-31 07:34:54 +0000
commit5995adc2065dbcbe7b0956cd2f6b2cd35dc2f60c (patch)
tree1a975f2ac0a0702045b32ec5bdafabf3aa115857 /sys/kern/kern_kse.c
parent99e9dcb817d24175052254238752ca3a4b007940 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r--sys/kern/kern_kse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 4b8a2c23bbab..02ef46d64c70 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -1144,7 +1144,7 @@ thread_switchout(struct thread *td)
* Setup done on the thread when it enters the kernel.
*/
void
-thread_user_enter(struct proc *p, struct thread *td)
+thread_user_enter(struct thread *td)
{
struct ksegrp *kg;
struct kse_upcall *ku;
@@ -1187,7 +1187,7 @@ thread_user_enter(struct proc *p, struct thread *td)
} else {
td->td_mailbox = tmbx;
td->td_pflags |= TDP_CAN_UNBIND;
- if (__predict_false(p->p_flag & P_TRACED)) {
+ if (__predict_false(td->td_proc->p_flag & P_TRACED)) {
flags = fuword32(&tmbx->tm_dflags);
if (flags & TMDF_SUSPEND) {
mtx_lock_spin(&sched_lock);