• Gautham R Shenoy's avatar
    sched: Create a helper function to calculate imbalance · dbc523a3
    Gautham R Shenoy authored
    Move all the imbalance calculation out of find_busiest_group()
    through this helper function.
    
    With this change, the structure of find_busiest_group() will be
    as follows:
    
    - update_sched_domain_statistics.
    
    - check if imbalance exits.
    
    - update imbalance and return busiest.
    Signed-off-by: default avatarGautham R Shenoy <ego@in.ibm.com>
    Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Suresh Siddha <suresh.b.siddha@intel.com>
    Cc: "Balbir Singh" <balbir@in.ibm.com>
    Cc: Nick Piggin <nickpiggin@yahoo.com.au>
    Cc: "Dhaval Giani" <dhaval@linux.vnet.ibm.com>
    Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>
    Cc: "Vaidyanathan Srinivasan" <svaidy@linux.vnet.ibm.com>
    LKML-Reference: <20090325091411.13992.43293.stgit@sofia.in.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    dbc523a3
sched.c 241 KB