Commit fccfdc6f authored by Paul Turner's avatar Paul Turner Committed by Ingo Molnar

sched: Fix buglet in return_cfs_rq_runtime()

In return_cfs_rq_runtime() we want to return bandwidth when there are no
remaining tasks, not "return" when this is the case.
Signed-off-by: default avatarPaul Turner <pjt@google.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20111108042736.623812423@google.comSigned-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4dcfe102
...@@ -1756,7 +1756,7 @@ static void __return_cfs_rq_runtime(struct cfs_rq *cfs_rq) ...@@ -1756,7 +1756,7 @@ static void __return_cfs_rq_runtime(struct cfs_rq *cfs_rq)
static __always_inline void return_cfs_rq_runtime(struct cfs_rq *cfs_rq) static __always_inline void return_cfs_rq_runtime(struct cfs_rq *cfs_rq)
{ {
if (!cfs_rq->runtime_enabled || !cfs_rq->nr_running) if (!cfs_rq->runtime_enabled || cfs_rq->nr_running)
return; return;
__return_cfs_rq_runtime(cfs_rq); __return_cfs_rq_runtime(cfs_rq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment