mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
- Restore timeslicing code for all bit SCHED_FIFO priority classes.
Reported by: Peter Jeremy <peterjeremy@optushome.com.au>
This commit is contained in:
parent
d42882913e
commit
fd0b8c783d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175104
@ -2186,17 +2186,16 @@ sched_clock(struct thread *td)
|
||||
tdq->tdq_ridx = tdq->tdq_idx;
|
||||
}
|
||||
ts = td->td_sched;
|
||||
/*
|
||||
* We only do slicing code for TIMESHARE threads.
|
||||
*/
|
||||
if (td->td_pri_class != PRI_TIMESHARE)
|
||||
if (td->td_pri_class & PRI_FIFO_BIT)
|
||||
return;
|
||||
/*
|
||||
* We used a tick; charge it to the thread so that we can compute our
|
||||
* interactivity.
|
||||
*/
|
||||
td->td_sched->ts_runtime += tickincr;
|
||||
sched_interact_update(td);
|
||||
if (td->td_pri_class == PRI_TIMESHARE) {
|
||||
/*
|
||||
* We used a tick; charge it to the thread so
|
||||
* that we can compute our interactivity.
|
||||
*/
|
||||
td->td_sched->ts_runtime += tickincr;
|
||||
sched_interact_update(td);
|
||||
}
|
||||
/*
|
||||
* We used up one time slice.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user