diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-11-04 16:15:37 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-04 10:21:49 +0100 |
commit | eefd796a8e831408ce17e633d73d70430748c47a (patch) | |
tree | cad65036abcd7f151d723b18e5c93b9115e82ff0 /kernel | |
parent | 8bb8c4386d08f2cc5d871d22f220d35032213f84 (diff) | |
download | linux-eefd796a8e831408ce17e633d73d70430748c47a.tar.gz linux-eefd796a8e831408ce17e633d73d70430748c47a.tar.bz2 linux-eefd796a8e831408ce17e633d73d70430748c47a.zip |
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')
-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); #ifdef CONFIG_SCHED_DEBUG -static inline const char *sd_level_to_string(enum sched_domain_level lvl) -{ - switch (lvl) { - case SD_LV_NONE: - return "NONE"; - case SD_LV_SIBLING: - return "SIBLING"; - case SD_LV_MC: - return "MC"; - case SD_LV_CPU: - return "CPU"; - case SD_LV_NODE: - return "NODE"; - case SD_LV_ALLNODES: - return "ALLNODES"; - case SD_LV_MAX: - return "MAX"; - - } - return "MAX"; -} - static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, cpumask_t *groupmask) { @@ -6643,8 +6621,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, return -1; } - printk(KERN_CONT "span %s level %s\n", - str, sd_level_to_string(sd->level)); + printk(KERN_CONT "span %s level %s\n", str, sd->name); if (!cpu_isset(cpu, sd->span)) { printk(KERN_ERR "ERROR: domain->span does not contain " |