Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Mon, 07 Nov 2011 20:26:34 -0800 | From | Paul Turner <> | Subject | [patch 2/3] 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: Paul Turner <pjt@google.com>
--- kernel/sched_fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: tip/kernel/sched_fair.c =================================================================== --- tip.orig/kernel/sched_fair.c +++ tip/kernel/sched_fair.c @@ -1746,7 +1746,7 @@ static __always_inline void return_cfs_r if (!cfs_bandwidth_used()) return; - if (!cfs_rq->runtime_enabled || !cfs_rq->nr_running) + if (!cfs_rq->runtime_enabled || cfs_rq->nr_running) return; __return_cfs_rq_runtime(cfs_rq);
| ![\](/images/icornerr.gif) |