lkml.org 
[lkml]   [2007]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [37/50] x86_64: Clean up mce= argument parsing slightly
    Date

    Move the = into the __setup line.
    Document the option in kernel-parameters.txt by adding a pointer
    to the x86-64 specific documentation.

    Pointed out by Robert Day
    Signed-off-by: Andi Kleen <ak@suse.de>

    ---
    Documentation/kernel-parameters.txt | 2 ++
    arch/x86_64/kernel/mce.c | 4 +---
    2 files changed, 3 insertions(+), 3 deletions(-)

    Index: linux/Documentation/kernel-parameters.txt
    ===================================================================
    --- linux.orig/Documentation/kernel-parameters.txt
    +++ linux/Documentation/kernel-parameters.txt
    @@ -970,6 +970,8 @@ and is between 256 and 4096 characters.

    mce [X86-32] Machine Check Exception

    + mce=option [X86-64] See Documentation/x86-64/boot-options.txt
    +
    md= [HW] RAID subsystems devices and level
    See Documentation/md.txt.

    Index: linux/arch/x86_64/kernel/mce.c
    ===================================================================
    --- linux.orig/arch/x86_64/kernel/mce.c
    +++ linux/arch/x86_64/kernel/mce.c
    @@ -699,8 +699,6 @@ static int __init mcheck_disable(char *s
    mce=nobootlog Don't log MCEs from before booting. */
    static int __init mcheck_enable(char *str)
    {
    - if (*str == '=')
    - str++;
    if (!strcmp(str, "off"))
    mce_dont_init = 1;
    else if (!strcmp(str, "bootlog") || !strcmp(str,"nobootlog"))
    @@ -713,7 +711,7 @@ static int __init mcheck_enable(char *st
    }

    __setup("nomce", mcheck_disable);
    -__setup("mce", mcheck_enable);
    +__setup("mce=", mcheck_enable);

    /*
    * Sysfs support
    -
    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/
    \
     
     \ /
      Last update: 2007-09-22 00:49    [W:4.335 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site