Use p4prio_to_tsprio to calculate TS priority instead of using

p4prio_to_rtpprio which is for RT priority.

PR:	kern/157657
Submitted by:	krivenok.dmitry at gmail dot com
MFC after:	3 days
This commit is contained in:
David Xu 2011-06-07 02:50:14 +00:00
parent 299cceef03
commit a231144921
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222802

View File

@ -206,7 +206,7 @@ ksched_setscheduler(struct ksched *ksched,
if (param->sched_priority >= 0 &&
param->sched_priority <= (PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE)) {
rtp.type = RTP_PRIO_NORMAL;
rtp.prio = p4prio_to_rtpprio(param->sched_priority);
rtp.prio = p4prio_to_tsprio(param->sched_priority);
rtp_to_pri(&rtp, td);
} else
e = EINVAL;