summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 0661c61..a4485a4 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -353,6 +353,8 @@ stopprofclock(p)
"stopprof", 0);
p->p_flag &= ~P_STOPPROF;
}
+ if ((p->p_flag & P_PROFIL) == 0)
+ return;
mtx_lock_spin(&sched_lock);
p->p_flag &= ~P_PROFIL;
if (--profprocs == 0)
OpenPOWER on IntegriCloud