[PATCH] sched debug: remove sd_level_to_string() - Kernel

This is a discussion on [PATCH] sched debug: remove sd_level_to_string() - Kernel ; Just use sd->name. Signed-off-by: Li Zefan --- kernel/sched.c | 25 +------------------------ 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/kernel/sched.c b/kernel/sched.c index bf75a5e..baa7e4b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -6622,28 +6622,6 @@ early_initcall(migration_init); #ifdef CONFIG_SCHED_DEBUG -static inline const char ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] sched debug: remove sd_level_to_string()

  1. [PATCH] sched debug: remove sd_level_to_string()

    Just use sd->name.

    Signed-off-by: Li Zefan
    ---
    kernel/sched.c | 25 +------------------------
    1 files changed, 1 insertions(+), 24 deletions(-)

    diff --git a/kernel/sched.c b/kernel/sched.c
    index bf75a5e..baa7e4b 100644
    --- a/kernel/sched.c
    +++ b/kernel/sched.c
    @@ -6622,28 +6622,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)
    {
    @@ -6663,8 +6641,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 "
    --
    1.5.4.rc3
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] sched debug: remove sd_level_to_string()


    * Li Zefan wrote:

    > Just use sd->name.
    >
    > Signed-off-by: Li Zefan
    > ---
    > kernel/sched.c | 25 +------------------------
    > 1 files changed, 1 insertions(+), 24 deletions(-)


    heh, nice. Applied to tip/sched/core, thanks!

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread