diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-31 12:00:44 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-31 12:00:44 -0500 |
| commit | 595bf999e3a864f40e049c67c42ecee50fb7a78a (patch) | |
| tree | ef6ccc5e84c7152eff59d6db55733de42c32329b /kernel | |
| 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')
| -rw-r--r-- | kernel/sched/core.c | 4 | ||||
| -rw-r--r-- | kernel/sched/deadline.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7fea865a810d..656cd70eb577 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
| @@ -4347,7 +4347,9 @@ SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid, | |||
| 4347 | goto out_unlock; | 4347 | goto out_unlock; |
| 4348 | 4348 | ||
| 4349 | rq = task_rq_lock(p, &flags); | 4349 | rq = task_rq_lock(p, &flags); |
| 4350 | time_slice = p->sched_class->get_rr_interval(rq, p); | 4350 | time_slice = 0; |
| 4351 | if (p->sched_class->get_rr_interval) | ||
| 4352 | time_slice = p->sched_class->get_rr_interval(rq, p); | ||
| 4351 | task_rq_unlock(rq, p, &flags); | 4353 | task_rq_unlock(rq, p, &flags); |
| 4352 | 4354 | ||
| 4353 | rcu_read_unlock(); | 4355 | rcu_read_unlock(); |
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 0de248202879..0dd5e0971a07 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c | |||
| @@ -351,7 +351,8 @@ static void replenish_dl_entity(struct sched_dl_entity *dl_se, | |||
| 351 | * disrupting the schedulability of the system. Otherwise, we should | 351 | * disrupting the schedulability of the system. Otherwise, we should |
| 352 | * refill the runtime and set the deadline a period in the future, | 352 | * refill the runtime and set the deadline a period in the future, |
| 353 | * because keeping the current (absolute) deadline of the task would | 353 | * because keeping the current (absolute) deadline of the task would |
| 354 | * result in breaking guarantees promised to other tasks. | 354 | * result in breaking guarantees promised to other tasks (refer to |
| 355 | * Documentation/scheduler/sched-deadline.txt for more informations). | ||
| 355 | * | 356 | * |
| 356 | * This function returns true if: | 357 | * This function returns true if: |
| 357 | * | 358 | * |
