aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-07-28 17:55:09 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-07-29 18:42:26 -0400
commite3346fc48204d780f92527d06df8bf6f28d603ec (patch)
tree9338e0a21192c02adcf7406f2f2fc55a76887c16
parent94699b04eddd4b247d871930431d6fa1a46c175e (diff)
x86, mce: fix "mce" boot option handling for CONFIG_X86_NEW_MCE
"mce argument mce ignored. Please use /sys" message shouldn't be printed when using "mce" boot option. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Reviewed-by: Andi Kleen <andi@firstfloor.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 7bd19c7f5315..75919440a188 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -1549,8 +1549,10 @@ static struct miscdevice mce_log_device = {
1549 */ 1549 */
1550static int __init mcheck_enable(char *str) 1550static int __init mcheck_enable(char *str)
1551{ 1551{
1552 if (*str == 0) 1552 if (*str == 0) {
1553 enable_p5_mce(); 1553 enable_p5_mce();
1554 return 1;
1555 }
1554 if (*str == '=') 1556 if (*str == '=')
1555 str++; 1557 str++;
1556 if (!strcmp(str, "off")) 1558 if (!strcmp(str, "off"))