diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-11-04 03:15:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-04 04:21:49 -0500 |
commit | eefd796a8e831408ce17e633d73d70430748c47a (patch) | |
tree | cad65036abcd7f151d723b18e5c93b9115e82ff0 /kernel/sched.c | |
parent | 8bb8c4386d08f2cc5d871d22f220d35032213f84 (diff) |
sched debug: remove sd_level_to_string()
Impact: cleanup
Just use the newly introduced sd->name.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 25 |
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 | ||
6605 | static 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 | |||
6627 | static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, | 6605 | static 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 " |