Commit 909dd324fb57ad690c38c4e3d52337defa099ce8
Committed by
Thomas Gleixner
1 parent
ffecad95ee
Exists in
master
and in
20 other branches
x86: clean up mce= argument parsing slightly
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>
Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff
Documentation/kernel-parameters.txt
arch/x86/kernel/mce_64.c
... | ... | @@ -695,8 +695,6 @@ |
695 | 695 | mce=nobootlog Don't log MCEs from before booting. */ |
696 | 696 | static int __init mcheck_enable(char *str) |
697 | 697 | { |
698 | - if (*str == '=') | |
699 | - str++; | |
700 | 698 | if (!strcmp(str, "off")) |
701 | 699 | mce_dont_init = 1; |
702 | 700 | else if (!strcmp(str, "bootlog") || !strcmp(str,"nobootlog")) |
... | ... | @@ -709,7 +707,7 @@ |
709 | 707 | } |
710 | 708 | |
711 | 709 | __setup("nomce", mcheck_disable); |
712 | -__setup("mce", mcheck_enable); | |
710 | +__setup("mce=", mcheck_enable); | |
713 | 711 | |
714 | 712 | /* |
715 | 713 | * Sysfs support |