aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c29
1 files changed, 11 insertions, 18 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 6ab477060f56..5395200dc9d9 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -908,16 +908,6 @@ static struct miscdevice mce_log_device = {
908}; 908};
909 909
910/* 910/*
911 * Old style boot options parsing. Only for compatibility.
912 */
913static int __init mcheck_disable(char *str)
914{
915 mce_disabled = 1;
916 return 1;
917}
918__setup("nomce", mcheck_disable);
919
920/*
921 * mce=off disables machine check 911 * mce=off disables machine check
922 * mce=TOLERANCELEVEL (number, see above) 912 * mce=TOLERANCELEVEL (number, see above)
923 * mce=bootlog Log MCEs from before booting. Disabled by default on AMD. 913 * mce=bootlog Log MCEs from before booting. Disabled by default on AMD.
@@ -1327,19 +1317,22 @@ void mcheck_init(struct cpuinfo_x86 *c)
1327 printk(KERN_INFO "mce: CPU supports %d MCE banks\n", nr_mce_banks); 1317 printk(KERN_INFO "mce: CPU supports %d MCE banks\n", nr_mce_banks);
1328} 1318}
1329 1319
1330static int __init mcheck_disable(char *str)
1331{
1332 mce_disabled = 1;
1333 return 1;
1334}
1335
1336static int __init mcheck_enable(char *str) 1320static int __init mcheck_enable(char *str)
1337{ 1321{
1338 mce_disabled = -1; 1322 mce_disabled = -1;
1339 return 1; 1323 return 1;
1340} 1324}
1341 1325
1342__setup("nomce", mcheck_disable);
1343__setup("mce", mcheck_enable); 1326__setup("mce", mcheck_enable);
1344 1327
1345#endif /* CONFIG_X86_32 */ 1328#endif /* CONFIG_X86_OLD_MCE */
1329
1330/*
1331 * Old style boot options parsing. Only for compatibility.
1332 */
1333static int __init mcheck_disable(char *str)
1334{
1335 mce_disabled = 1;
1336 return 1;
1337}
1338__setup("nomce", mcheck_disable);