mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-19 08:13:57 +00:00
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:
parent
299cceef03
commit
a231144921
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222802
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue