diff options
-rw-r--r-- | sys/kern/subr_prof.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index d97b452..18c2863 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -444,12 +444,8 @@ addupc_task(p, pc, ticks) u_short v; /* Testing PS_PROFIL may be unnecessary, but is certainly safe. */ - mtx_lock_spin(&sched_lock); - if ((p->p_sflag & PS_PROFIL) == 0 || ticks == 0) { - mtx_unlock_spin(&sched_lock); + if ((p->p_sflag & PS_PROFIL) == 0 || ticks == 0) return; - } - mtx_unlock_spin(&sched_lock); prof = &p->p_stats->p_prof; if (pc < prof->pr_off || |