aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index ef4e25604bbe..dc0be113f41d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6197,6 +6197,28 @@ void __init migration_init(void)
6197 6197
6198#ifdef CONFIG_SCHED_DEBUG 6198#ifdef CONFIG_SCHED_DEBUG
6199 6199
6200static inline const char *sd_level_to_string(enum sched_domain_level lvl)
6201{
6202 switch (lvl) {
6203 case SD_LV_NONE:
6204 return "NONE";
6205 case SD_LV_SIBLING:
6206 return "SIBLING";
6207 case SD_LV_MC:
6208 return "MC";
6209 case SD_LV_CPU:
6210 return "CPU";
6211 case SD_LV_NODE:
6212 return "NODE";
6213 case SD_LV_ALLNODES:
6214 return "ALLNODES";
6215 case SD_LV_MAX:
6216 return "MAX";
6217
6218 }
6219 return "MAX";
6220}
6221
6200static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, 6222static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
6201 cpumask_t *groupmask) 6223 cpumask_t *groupmask)
6202{ 6224{
@@ -6216,7 +6238,8 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
6216 return -1; 6238 return -1;
6217 } 6239 }
6218 6240
6219 printk(KERN_CONT "span %s\n", str); 6241 printk(KERN_CONT "span %s level %s\n",
6242 str, sd_level_to_string(sd->level));
6220 6243
6221 if (!cpu_isset(cpu, sd->span)) { 6244 if (!cpu_isset(cpu, sd->span)) {
6222 printk(KERN_ERR "ERROR: domain->span does not contain " 6245 printk(KERN_ERR "ERROR: domain->span does not contain "