mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC 198126:
Fix a sign bug in the handling of nice priorities when computing the interactive score for a thread. Approved by: re (kib)
This commit is contained in:
parent
a9266569b7
commit
74fb2c91c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1406,7 +1406,7 @@ sched_priority(struct thread *td)
|
|||
* score. Negative nice values make it easier for a thread to be
|
||||
* considered interactive.
|
||||
*/
|
||||
score = imax(0, sched_interact_score(td) - td->td_proc->p_nice);
|
||||
score = imax(0, sched_interact_score(td) + td->td_proc->p_nice);
|
||||
if (score < sched_interact) {
|
||||
pri = PRI_MIN_REALTIME;
|
||||
pri += ((PRI_MAX_REALTIME - PRI_MIN_REALTIME) / sched_interact)
|
||||
|
|
|
|||
Loading…
Reference in a new issue