aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGautham R Shenoy <ego@in.ibm.com>2009-03-30 00:55:20 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-01 11:58:03 -0400
commit46e0bb9c12f4bab539736f1714cbf16600f681ec (patch)
tree755769f792c6b59eadfdda02b6a64166bf0ca8d8
parentef12fefabf94b6a902ad3abd3eb124b00560c445 (diff)
sched: Print sched_group::__cpu_power in sched_domain_debug
Impact: extend debug info /proc/sched_debug If the user changes the value of the sched_mc/smt_power_savings sysfs tunable, it'll trigger a rebuilding of the whole sched_domain tree, with the SD_POWERSAVINGS_BALANCE flag set at certain levels. As a result, there would be a change in the __cpu_power of sched_groups in the sched_domain hierarchy. Print the __cpu_power values for each sched_group in sched_domain_debug to help verify this change and correlate it with the change in the load-balancing behavior. Signed-off-by: Gautham R Shenoy <ego@in.ibm.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20090330045520.2869.24777.stgit@sofia.in.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 8d1bdbe8aafc..6234d10c6a79 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6963,7 +6963,8 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
6963 cpumask_or(groupmask, groupmask, sched_group_cpus(group)); 6963 cpumask_or(groupmask, groupmask, sched_group_cpus(group));
6964 6964
6965 cpulist_scnprintf(str, sizeof(str), sched_group_cpus(group)); 6965 cpulist_scnprintf(str, sizeof(str), sched_group_cpus(group));
6966 printk(KERN_CONT " %s", str); 6966 printk(KERN_CONT " %s (__cpu_power = %d)", str,
6967 group->__cpu_power);
6967 6968
6968 group = group->next; 6969 group = group->next;
6969 } while (group != sd->groups); 6970 } while (group != sd->groups);