Skip to contentSkip to conversation

mce: fix "mce" boot option handling for CONFIG_X86_NEW_MCE

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message Jul 28, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mce: fix "mce" boot option handling for CONFIG_X86_NEW_MCE

From: Bartlomiej Zolnierkiewicz <[email protected]>
Subject: [PATCH] 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.

---
 arch/x86/kernel/cpu/mcheck/mce.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +3 -1
Index: b/arch/x86/kernel/cpu/mcheck/mce.c
===================================================================
@@ -1542,8 +1542,10 @@ static struct miscdevice mce_log_device 
  */
 static int __init mcheck_enable(char *str)
 {
-	if (*str == 0)
+	if (*str == 0) {
 		enable_p5_mce();
+		return 1;
+	}
 	if (*str == '=')
 		str++;
 	if (!strcmp(str, "off"))