- Catch up to proc flag changes.

This commit is contained in:
John Baldwin 2001-01-24 11:11:35 +00:00
parent 1899325c72
commit ec5a741d77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71565

View File

@ -443,9 +443,13 @@ addupc_task(p, pc, ticks)
register u_int i;
u_short v;
/* Testing P_PROFIL may be unnecessary, but is certainly safe. */
if ((p->p_flag & P_PROFIL) == 0 || ticks == 0)
/* Testing PS_PROFIL may be unnecessary, but is certainly safe. */
mtx_enter(&sched_lock, MTX_SPIN);
if ((p->p_sflag & PS_PROFIL) == 0 || ticks == 0) {
mtx_exit(&sched_lock, MTX_SPIN);
return;
}
mtx_exit(&sched_lock, MTX_SPIN);
prof = &p->p_stats->p_prof;
if (pc < prof->pr_off ||