]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: clean up mce= argument parsing slightly
authorAndi Kleen <ak@suse.de>
Wed, 17 Oct 2007 16:04:38 +0000 (18:04 +0200)
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>
Wed, 17 Oct 2007 18:16:32 +0000 (20:16 +0200)
Move the = into the __setup line.
Document the option in kernel-parameters.txt by adding a pointer
to the x86-64 specific documentation.

[ tglx: arch/x86 adaptation ]

Pointed out by Robert Day
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/kernel-parameters.txt
arch/x86/kernel/mce_64.c

index 63bda3637085370906497b9edde036123cb441a5..98cf90f2631d736021478528fab34281a79b5659 100644 (file)
@@ -994,6 +994,8 @@ and is between 256 and 4096 characters. It is defined in the file
 
        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 97d2b757d6bdc0f48724fa230bec98e91042f0c7..8ca8f8648969354b12a37af8f7f135c6728e31a9 100644 (file)
@@ -695,8 +695,6 @@ static int __init mcheck_disable(char *str)
    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"))
@@ -709,7 +707,7 @@ static int __init mcheck_enable(char *str)
 }
 
 __setup("nomce", mcheck_disable);
-__setup("mce", mcheck_enable);
+__setup("mce=", mcheck_enable);
 
 /* 
  * Sysfs support