Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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.com


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4dcfe102
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);