sched: Create a helper function to calculate imbalance
sched: Create a helper function to calculate imbalance

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: Gautham R Shenoy <c13571dbffa0eb89c7f8eebdce482897b0f5a685@in.ibm.com>
Acked-by: Peter Zijlstra <645ca7d3a8d3d4f60557176cd361ea8351edc32b@chello.nl>
Cc: Suresh Siddha <a42fd12510d3895be740fb89f87586733ee62f57@intel.com>
Cc: "Balbir Singh" <65a1aed538f36fed73d8c45e9ddfc585ce9f4abf@in.ibm.com>
Cc: Nick Piggin <3db79564e4bc2ada42ade8dfd09b5548e4fe6cdf@yahoo.com.au>
Cc: "Dhaval Giani" <9e8a88f272eaf8af1eb7757146d1fb3d7f128182@linux.vnet.ibm.com>
Cc: Bharata B Rao <37852461ec08f94420c663824224090aed552843@linux.vnet.ibm.com>
Cc: "Vaidyanathan Srinivasan" <c012decff9dffda4c10860ab2ba9eb53320d90bc@linux.vnet.ibm.com>
LKML-Reference: <e79e92edca85e7c685bffa2040701f9e9b302deb@sofia.in.ibm.com>
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>

KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs