From: Jason Low Date: Fri, 13 Sep 2013 18:26:51 +0000 (-0700) Subject: sched: Reduce overestimating rq->avg_idle X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~40^2~125 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abfafa54db9aba404e8e6763503f04d35bd07138;p=pandora-kernel.git sched: Reduce overestimating rq->avg_idle When updating avg_idle, if the delta exceeds some max value, then avg_idle gets set to the max, regardless of what the previous avg was. This can cause avg_idle to often be overestimated. This patch modifies the way we update avg_idle by always updating it with the function call to update_avg() first. Then, if avg_idle exceeds the max, we set it to the max. Signed-off-by: Jason Low Reviewed-by: Rik van Riel Reviewed-by: Srikar Dronamraju Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1379096813-3032-2-git-send-email-jason.low2@hp.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed