diff options
author | Gautham R Shenoy <[email protected]> | 2009-03-25 14:44:17 +0530 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-03-25 10:30:48 +0100 |
commit | a021dc03376707c55a3483e32c16b8986d4414cc (patch) | |
tree | a3d29953e30b8874e7191d29dc50c59f9ac4c809 /net/lapb/lapb_iface.c | |
parent | dbc523a3b86f9e1765b5e70e6886913b99cc5cec (diff) |
sched: Optimize the !power_savings_balance during fbg()
Impact: cleanup, micro-optimization
We don't need to perform power_savings balance if either the
cpu is NOT_IDLE or if the sched_domain doesn't contain the
SD_POWERSAVINGS_BALANCE flag set.
Currently, we check for these conditions multiple number of
times, even though these variables don't change over the scope
of find_busiest_group().
Check once, and store the value in the already exiting
"power_savings_balance" variable.
Signed-off-by: Gautham R Shenoy <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Suresh Siddha <[email protected]>
Cc: "Balbir Singh" <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: "Dhaval Giani" <[email protected]>
Cc: Bharata B Rao <[email protected]>
Cc: "Vaidyanathan Srinivasan" <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions