diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2004-05-03 00:48:11 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2004-05-03 00:48:11 +0000 |
| commit | b62b2304616f87b607e5db36d6d1cc28759aea6e (patch) | |
| tree | 357e06781027d7bd0973797fe3930923f5872b44 /sys/kern/kern_clock.c | |
| parent | 2c10b9fdfa2f9c0d4750a15934ded01ab84aa383 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
| -rw-r--r-- | sys/kern/kern_clock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 0661c61f6e4b..a4485a448958 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) |
