diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-07-09 15:15:43 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-07-17 12:05:14 +0200 |
commit | bbc8cb5baead9607309583b20873ab0cc8d89eaf (patch) | |
tree | 425cfb2772ef50c1858a7d833408ad1bcc423f51 /kernel/sched_cpupri.h | |
parent | sched: Update rq->clock for nohz balanced cpus (diff) | |
download | linux-bbc8cb5baead9607309583b20873ab0cc8d89eaf.tar.xz linux-bbc8cb5baead9607309583b20873ab0cc8d89eaf.zip |
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 <venki@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <1278612989.1900.176.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_cpupri.h')
0 files changed, 0 insertions, 0 deletions