Use newkg to check if SCHED_OTHER is already inherited.

This commit is contained in:
David Xu 2006-07-12 07:02:28 +00:00
parent 888965d6f9
commit a94d3e1f8a

View File

@ -229,8 +229,7 @@ create_thread(struct thread *td, mcontext_t *ctx,
sched_prio(newtd, newkg->kg_user_pri);
break;
case SCHED_OTHER:
if (curthread->td_ksegrp->kg_pri_class !=
PRI_TIMESHARE) {
if (newkg->kg_pri_class != PRI_TIMESHARE) {
rtp.type = PRI_TIMESHARE;
rtp.prio = 0;
rtp_to_pri(&rtp, newkg);