diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-31 09:00:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-31 09:00:44 -0800 |
commit | 595bf999e3a864f40e049c67c42ecee50fb7a78a (patch) | |
tree | ef6ccc5e84c7152eff59d6db55733de42c32329b /kernel/sched/core.c | |
parent | ab5318788c6725b6d5c95aff28e63af4c35a0e2c (diff) | |
parent | a57beec5d427086cdc8d75fd51164577193fa7f4 (diff) |
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar:
"A crash fix and documentation updates"
* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched: Make sched_class::get_rr_interval() optional
sched/deadline: Add sched_dl documentation
sched: Fix docbook parameter annotation error in wait.h
Diffstat (limited to 'kernel/sched/core.c')
-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 7fea865a810..656cd70eb57 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4347,7 +4347,9 @@ SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid, goto out_unlock; rq = task_rq_lock(p, &flags); - time_slice = p->sched_class->get_rr_interval(rq, p); + time_slice = 0; + if (p->sched_class->get_rr_interval) + time_slice = p->sched_class->get_rr_interval(rq, p); task_rq_unlock(rq, p, &flags); rcu_read_unlock(); |