summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 3884abf..ac55cea 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -118,9 +118,8 @@ userret(struct thread *td, struct trapframe *frame)
/*
* Charge system time if profiling.
*/
- if (p->p_flag & P_PROFIL) {
+ if (p->p_flag & P_PROFIL)
addupc_task(td, TRAPF_PC(frame), td->td_pticks * psratio);
- }
/*
* Let the scheduler adjust our priority etc.
*/
OpenPOWER on IntegriCloud