mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
sched: fix the wrong time slice value for SCHED_FIFO tasks
Function sys_sched_rr_get_interval returns wrong time slice value for SCHED_FIFO tasks. The time slice for SCHED_FIFO tasks should be 0. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
150d8bede7
commit
1868f958eb
1 changed files with 1 additions and 1 deletions
|
@ -5100,7 +5100,7 @@ long sys_sched_rr_get_interval(pid_t pid, struct timespec __user *interval)
|
|||
time_slice = 0;
|
||||
if (p->policy == SCHED_RR) {
|
||||
time_slice = DEF_TIMESLICE;
|
||||
} else {
|
||||
} else if (p->policy != SCHED_FIFO) {
|
||||
struct sched_entity *se = &p->se;
|
||||
unsigned long flags;
|
||||
struct rq *rq;
|
||||
|
|
Loading…
Reference in a new issue