summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-09-22 15:24:33 +0000
committerjhb <jhb@FreeBSD.org>2004-09-22 15:24:33 +0000
commit39563036071c35de79aa935b7bdfc209277f3afb (patch)
tree868f409e596498f500847bbc4ec4cc18c58356b2 /sys/kern/subr_trap.c
parentdd60f24093444fdbc0af6b156c91edf47be72655 (diff)
downloadFreeBSD-src-39563036071c35de79aa935b7bdfc209277f3afb.zip
FreeBSD-src-39563036071c35de79aa935b7bdfc209277f3afb.tar.gz
Various small style fixes.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c3
1 files changed, 2 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud