diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-09-01 04:34:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-04 04:09:56 -0400 |
commit | 18a3885fc1ffa92c2212ff0afdf033403d5b0fa0 (patch) | |
tree | e83c640c68d957b793b56e90274aa2f3d0e97655 /include/linux/sched.h | |
parent | d899a789c28ded9c72b57ddb61868d6b8fc23e80 (diff) |
sched: Remove reciprocal for cpu_power
Its a source of fail, also, now that cpu_power is dynamical,
its a waste of time.
before:
<idle>-0 [000] 132.877936: find_busiest_group: avg_load: 0 group_load: 8241 power: 1
after:
bash-1689 [001] 137.862151: find_busiest_group: avg_load: 10636288 group_load: 10387 power: 1
[ v2: build fix from From: Andreas Herrmann ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Gautham R Shenoy <ego@in.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
LKML-Reference: <20090901083826.425896304@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c67ddf309c84..3b7f43e3b736 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -860,15 +860,9 @@ struct sched_group { | |||
860 | 860 | ||
861 | /* | 861 | /* |
862 | * CPU power of this group, SCHED_LOAD_SCALE being max power for a | 862 | * CPU power of this group, SCHED_LOAD_SCALE being max power for a |
863 | * single CPU. This is read only (except for setup, hotplug CPU). | 863 | * single CPU. |
864 | * Note : Never change cpu_power without recompute its reciprocal | ||
865 | */ | 864 | */ |
866 | unsigned int __cpu_power; | 865 | unsigned int cpu_power; |
867 | /* | ||
868 | * reciprocal value of cpu_power to avoid expensive divides | ||
869 | * (see include/linux/reciprocal_div.h) | ||
870 | */ | ||
871 | u32 reciprocal_cpu_power; | ||
872 | 866 | ||
873 | /* | 867 | /* |
874 | * The CPUs this group covers. | 868 | * The CPUs this group covers. |