diff options
-rw-r--r-- | kernel/sched/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 36c951b7eef8..81343d6bd9cb 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -4324,7 +4324,9 @@ SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid, | |||
4324 | goto out_unlock; | 4324 | goto out_unlock; |
4325 | 4325 | ||
4326 | rq = task_rq_lock(p, &flags); | 4326 | rq = task_rq_lock(p, &flags); |
4327 | time_slice = p->sched_class->get_rr_interval(rq, p); | 4327 | time_slice = 0; |
4328 | if (p->sched_class->get_rr_interval) | ||
4329 | time_slice = p->sched_class->get_rr_interval(rq, p); | ||
4328 | task_rq_unlock(rq, p, &flags); | 4330 | task_rq_unlock(rq, p, &flags); |
4329 | 4331 | ||
4330 | rcu_read_unlock(); | 4332 | rcu_read_unlock(); |