From 39563036071c35de79aa935b7bdfc209277f3afb Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 22 Sep 2004 15:24:33 +0000 Subject: Various small style fixes. --- sys/kern/subr_trap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/subr_trap.c') diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 3f68103..55b23c9 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -164,6 +164,7 @@ ast(struct trapframe *framep) if ((p->p_flag & P_SA) && (td->td_mailbox == NULL)) thread_user_enter(td); + /* * This updates the p_sflag's for the checks below in one * "atomic" operation with turning off the astpending flag. @@ -183,6 +184,7 @@ ast(struct trapframe *framep) TDF_NEEDRESCHED | TDF_INTERRUPT); cnt.v_soft++; mtx_unlock_spin(&sched_lock); + /* * XXXKSE While the fact that we owe a user profiling * tick is stored per KSE in this code, the statistics @@ -190,7 +192,6 @@ ast(struct trapframe *framep) * This should probably change, by which I mean that * possibly the location of both might change. */ - if (td->td_ucred != p->p_ucred) cred_update_thread(td); if (td->td_pflags & TDP_OWEUPC && p->p_flag & P_PROFIL) { -- cgit v1.1