From: Peter Zijlstra Date: Fri, 9 Jul 2010 13:15:43 +0000 (+0200) Subject: sched: Reduce update_group_power() calls X-Git-Tag: v2.6.36-rc1~531^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbc8cb5baead9607309583b20873ab0cc8d89eaf;p=pandora-kernel.git sched: Reduce update_group_power() calls Currently we update cpu_power() too often, update_group_power() only updates the local group's cpu_power but it gets called for all groups. Furthermore, CPU_NEWLY_IDLE invocations will result in all cpus calling it, even though a slow update of cpu_power is sufficient. Therefore move the update under 'idle != CPU_NEWLY_IDLE && local_group' to reduce superfluous invocations. Reported-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra Acked-by: Suresh Siddha LKML-Reference: <1278612989.1900.176.camel@laptop> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed