فهرست منبع

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>
Bartlomiej Zolnierkiewicz 16 سال پیش
والد
کامیت
e3346fc482
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      arch/x86/kernel/cpu/mcheck/mce.c

+ 3 - 1
arch/x86/kernel/cpu/mcheck/mce.c

@@ -1549,8 +1549,10 @@ static struct miscdevice mce_log_device = {
  */
  */
 static int __init mcheck_enable(char *str)
 static int __init mcheck_enable(char *str)
 {
 {
-	if (*str == 0)
+	if (*str == 0) {
 		enable_p5_mce();
 		enable_p5_mce();
+		return 1;
+	}
 	if (*str == '=')
 	if (*str == '=')
 		str++;
 		str++;
 	if (!strcmp(str, "off"))
 	if (!strcmp(str, "off"))