aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-07-14 07:00:06 -0400
committerIngo Molnar <mingo@elte.hu>2011-07-20 12:32:40 -0400
commit9c3f75cbd144014bea6af866a154cc2e73ab2287 (patch)
tree2a565f7ff0820269973415c5605e313cfff903b4 /include
parente6625fa48e6580a74b7e700efd7e6463e282810b (diff)
sched: Break out cpu_power from the sched_group structure
In order to prepare for non-unique sched_groups per domain, we need to carry the cpu_power elsewhere, so put a level of indirection in. Reported-and-tested-by: Anton Blanchard <anton@samba.org> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/n/tip-qkho2byuhe4482fuknss40ad@git.kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 496770a96487..2e5b3c8e2d3e 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -893,16 +893,20 @@ static inline int sd_power_saving_flags(void)
893 return 0; 893 return 0;
894} 894}
895 895
896struct sched_group { 896struct sched_group_power {
897 struct sched_group *next; /* Must be a circular list */
898 atomic_t ref;
899
900 /* 897 /*
901 * CPU power of this group, SCHED_LOAD_SCALE being max power for a 898 * CPU power of this group, SCHED_LOAD_SCALE being max power for a
902 * single CPU. 899 * single CPU.
903 */ 900 */
904 unsigned int cpu_power, cpu_power_orig; 901 unsigned int power, power_orig;
902};
903
904struct sched_group {
905 struct sched_group *next; /* Must be a circular list */
906 atomic_t ref;
907
905 unsigned int group_weight; 908 unsigned int group_weight;
909 struct sched_group_power *sgp;
906 910
907 /* 911 /*
908 * The CPUs this group covers. 912 * The CPUs this group covers.