mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
Always use PRI_BASE() when checking the base type of a thread's priority
class. MFC after: 2 weeks
This commit is contained in:
parent
6949dd5cc2
commit
c9a8cba456
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217291
@ -1388,7 +1388,7 @@ sched_priority(struct thread *td)
|
||||
int score;
|
||||
int pri;
|
||||
|
||||
if (td->td_pri_class != PRI_TIMESHARE)
|
||||
if (PRI_BASE(td->td_pri_class) != PRI_TIMESHARE)
|
||||
return;
|
||||
/*
|
||||
* If the score is interactive we place the thread in the realtime
|
||||
@ -2124,7 +2124,7 @@ sched_clock(struct thread *td)
|
||||
ts = td->td_sched;
|
||||
if (td->td_pri_class & PRI_FIFO_BIT)
|
||||
return;
|
||||
if (td->td_pri_class == PRI_TIMESHARE) {
|
||||
if (PRI_BASE(td->td_pri_class) == PRI_TIMESHARE) {
|
||||
/*
|
||||
* We used a tick; charge it to the thread so
|
||||
* that we can compute our interactivity.
|
||||
|
Loading…
Reference in New Issue
Block a user