diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2008-03-06 20:35:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-03-07 10:43:00 -0500 |
commit | 1868f958eb56fc41c5985c8732e564a400c5fdf5 (patch) | |
tree | 4f8d83e487e5fa93e3d773591a26eda02d1b387d /kernel/sched.c | |
parent | 150d8bede7f85eb00d8f4d628e6b0bae68739e3b (diff) |
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>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 63a469f8853d..5b13e4b0e009 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -5100,7 +5100,7 @@ long sys_sched_rr_get_interval(pid_t pid, struct timespec __user *interval) | |||
5100 | time_slice = 0; | 5100 | time_slice = 0; |
5101 | if (p->policy == SCHED_RR) { | 5101 | if (p->policy == SCHED_RR) { |
5102 | time_slice = DEF_TIMESLICE; | 5102 | time_slice = DEF_TIMESLICE; |
5103 | } else { | 5103 | } else if (p->policy != SCHED_FIFO) { |
5104 | struct sched_entity *se = &p->se; | 5104 | struct sched_entity *se = &p->se; |
5105 | unsigned long flags; | 5105 | unsigned long flags; |
5106 | struct rq *rq; | 5106 | struct rq *rq; |