summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/mce.c
diff options
context:
space:
mode:
authorAndi Kleen2005-09-12 18:49:24 +0200
committerLinus Torvalds2005-09-12 19:49:57 +0200
commit8c566ef5f3eb5d9daf61d0fa31d82c211f601ba0 (patch)
tree646730e657f27a23b3081fafafe494121e0d8075 /arch/x86_64/kernel/mce.c
parent[PATCH] x86-64: Make lockless machine check record passing a bit more robust. (diff)
downloadkernel-qcow2-linux-8c566ef5f3eb5d9daf61d0fa31d82c211f601ba0.tar.gz
kernel-qcow2-linux-8c566ef5f3eb5d9daf61d0fa31d82c211f601ba0.tar.xz
kernel-qcow2-linux-8c566ef5f3eb5d9daf61d0fa31d82c211f601ba0.zip
[PATCH] x86-64: Add command line option to set machine check tolerance level
Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/mce.c')
-rw-r--r--arch/x86_64/kernel/mce.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/mce.c b/arch/x86_64/kernel/mce.c
index 87ea8fdd43fd..a39a3edf9ed4 100644
--- a/arch/x86_64/kernel/mce.c
+++ b/arch/x86_64/kernel/mce.c
@@ -17,6 +17,7 @@
#include <linux/fs.h>
#include <linux/cpu.h>
#include <linux/percpu.h>
+#include <linux/ctype.h>
#include <asm/processor.h>
#include <asm/msr.h>
#include <asm/mce.h>
@@ -489,6 +490,7 @@ static int __init mcheck_disable(char *str)
/* mce=off disables machine check. Note you can reenable it later
using sysfs.
+ mce=TOLERANCELEVEL (number, see above)
mce=bootlog Log MCEs from before booting. Disabled by default to work
around buggy BIOS that leave bogus MCEs. */
static int __init mcheck_enable(char *str)
@@ -499,6 +501,8 @@ static int __init mcheck_enable(char *str)
mce_dont_init = 1;
else if (!strcmp(str, "bootlog"))
mce_bootlog = 1;
+ else if (isdigit(str[0]))
+ get_option(&str, &tolerant);
else
printk("mce= argument %s ignored. Please use /sys", str);
return 0;