- Don't set td_priority directly here, use sched_prio().

This commit is contained in:
Jeff Roberson 2003-10-27 07:15:47 +00:00
parent 8c0dd0e438
commit eab9cabf34

View File

@ -409,7 +409,7 @@ rtp_to_pri(struct rtprio *rtp, struct ksegrp *kg)
sched_class(kg, rtp->type);
if (curthread->td_ksegrp == kg) {
curthread->td_base_pri = kg->kg_user_pri;
curthread->td_priority = kg->kg_user_pri; /* XXX dubious */
sched_prio(curthread, kg->kg_user_pri); /* XXX dubious */
}
return (0);
}