aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce_64.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_64.c b/arch/x86/kernel/cpu/mcheck/mce_64.c
index 6fb0b359d2a5..77effb55afe7 100644
--- a/arch/x86/kernel/cpu/mcheck/mce_64.c
+++ b/arch/x86/kernel/cpu/mcheck/mce_64.c
@@ -839,25 +839,29 @@ static int __init mcheck_disable(char *str)
839 mce_dont_init = 1; 839 mce_dont_init = 1;
840 return 1; 840 return 1;
841} 841}
842__setup("nomce", mcheck_disable);
842 843
843/* mce=off disables machine check. 844/*
844 mce=TOLERANCELEVEL (number, see above) 845 * mce=off disables machine check
845 mce=bootlog Log MCEs from before booting. Disabled by default on AMD. 846 * mce=TOLERANCELEVEL (number, see above)
846 mce=nobootlog Don't log MCEs from before booting. */ 847 * mce=bootlog Log MCEs from before booting. Disabled by default on AMD.
848 * mce=nobootlog Don't log MCEs from before booting.
849 */
847static int __init mcheck_enable(char *str) 850static int __init mcheck_enable(char *str)
848{ 851{
849 if (!strcmp(str, "off")) 852 if (!strcmp(str, "off"))
850 mce_dont_init = 1; 853 mce_dont_init = 1;
851 else if (!strcmp(str, "bootlog") || !strcmp(str,"nobootlog")) 854 else if (!strcmp(str, "bootlog") || !strcmp(str, "nobootlog"))
852 mce_bootlog = str[0] == 'b'; 855 mce_bootlog = (str[0] == 'b');
853 else if (isdigit(str[0])) 856 else if (isdigit(str[0]))
854 get_option(&str, &tolerant); 857 get_option(&str, &tolerant);
855 else 858 else {
856 printk("mce= argument %s ignored. Please use /sys", str); 859 printk(KERN_INFO "mce= argument %s ignored. Please use /sys\n",
860 str);
861 return 0;
862 }
857 return 1; 863 return 1;
858} 864}
859
860__setup("nomce", mcheck_disable);
861__setup("mce=", mcheck_enable); 865__setup("mce=", mcheck_enable);
862 866
863/* 867/*