aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5419df9cc5c4..7ac59bae87d2 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6602,28 +6602,6 @@ early_initcall(migration_init);
6602 6602
6603#ifdef CONFIG_SCHED_DEBUG 6603#ifdef CONFIG_SCHED_DEBUG
6604 6604
6605static inline const char *sd_level_to_string(enum sched_domain_level lvl)
6606{
6607 switch (lvl) {
6608 case SD_LV_NONE:
6609 return "NONE";
6610 case SD_LV_SIBLING:
6611 return "SIBLING";
6612 case SD_LV_MC:
6613 return "MC";
6614 case SD_LV_CPU:
6615 return "CPU";
6616 case SD_LV_NODE:
6617 return "NODE";
6618 case SD_LV_ALLNODES:
6619 return "ALLNODES";
6620 case SD_LV_MAX:
6621 return "MAX";
6622
6623 }
6624 return "MAX";
6625}
6626
6627static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, 6605static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
6628 cpumask_t *groupmask) 6606 cpumask_t *groupmask)
6629{ 6607{
@@ -6643,8 +6621,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
6643 return -1; 6621 return -1;
6644 } 6622 }
6645 6623
6646 printk(KERN_CONT "span %s level %s\n", 6624 printk(KERN_CONT "span %s level %s\n", str, sd->name);
6647 str, sd_level_to_string(sd->level));
6648 6625
6649 if (!cpu_isset(cpu, sd->span)) { 6626 if (!cpu_isset(cpu, sd->span)) {
6650 printk(KERN_ERR "ERROR: domain->span does not contain " 6627 printk(KERN_ERR "ERROR: domain->span does not contain "