From: Peter Zijlstra Date: Fri, 27 Jun 2008 11:41:19 +0000 (+0200) Subject: sched: update aggregate when holding the RQs X-Git-Tag: v2.6.27-rc1~1105^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d8d595dfa69e1c807bf928f364668a7f30da5dc;p=pandora-kernel.git sched: update aggregate when holding the RQs It was observed that in __update_group_shares_cpu() rq_weight > aggregate()->rq_weight This is caused by forks/wakeups in between the initial aggregate pass and locking of the RQs for load balance. To avoid this situation partially re-do the aggregation once we have the RQs locked (which avoids new tasks from appearing). Signed-off-by: Peter Zijlstra Cc: Srivatsa Vaddagiri Cc: Mike Galbraith Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed