diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-04-28 16:50:19 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-28 12:24:12 -0400 |
commit | 04b2b1a4df6cd0fdaa598f3c623a19c2d93cb48a (patch) | |
tree | 5fb8d2619fd24cc2ec3314c3610a0c45cd4fef05 /arch/x86/kernel | |
parent | 5d7279268b654d1f8ac43b0eb6cd9598d9cf55fd (diff) |
x86, mce: rename 64bit mce_dont_init to mce_disabled
Give it the same name as on 32bit. This makes further merging easier.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index d99318b470d8..6ab477060f56 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
@@ -49,14 +49,15 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code) | |||
49 | /* Call the installed machine check handler for this CPU setup. */ | 49 | /* Call the installed machine check handler for this CPU setup. */ |
50 | void (*machine_check_vector)(struct pt_regs *, long error_code) = | 50 | void (*machine_check_vector)(struct pt_regs *, long error_code) = |
51 | unexpected_machine_check; | 51 | unexpected_machine_check; |
52 | |||
53 | int mce_disabled; | ||
54 | |||
52 | #ifdef CONFIG_X86_64 | 55 | #ifdef CONFIG_X86_64 |
53 | 56 | ||
54 | #define MISC_MCELOG_MINOR 227 | 57 | #define MISC_MCELOG_MINOR 227 |
55 | 58 | ||
56 | atomic_t mce_entry; | 59 | atomic_t mce_entry; |
57 | 60 | ||
58 | static int mce_dont_init; | ||
59 | |||
60 | /* | 61 | /* |
61 | * Tolerant levels: | 62 | * Tolerant levels: |
62 | * 0: always panic on uncorrected errors, log corrected errors | 63 | * 0: always panic on uncorrected errors, log corrected errors |
@@ -194,7 +195,7 @@ static void mce_panic(char *msg, struct mce *backup, u64 start) | |||
194 | 195 | ||
195 | int mce_available(struct cpuinfo_x86 *c) | 196 | int mce_available(struct cpuinfo_x86 *c) |
196 | { | 197 | { |
197 | if (mce_dont_init) | 198 | if (mce_disabled) |
198 | return 0; | 199 | return 0; |
199 | return cpu_has(c, X86_FEATURE_MCE) && cpu_has(c, X86_FEATURE_MCA); | 200 | return cpu_has(c, X86_FEATURE_MCE) && cpu_has(c, X86_FEATURE_MCA); |
200 | } | 201 | } |
@@ -720,7 +721,7 @@ void __cpuinit mcheck_init(struct cpuinfo_x86 *c) | |||
720 | return; | 721 | return; |
721 | 722 | ||
722 | if (mce_cap_init() < 0) { | 723 | if (mce_cap_init() < 0) { |
723 | mce_dont_init = 1; | 724 | mce_disabled = 1; |
724 | return; | 725 | return; |
725 | } | 726 | } |
726 | mce_cpu_quirks(c); | 727 | mce_cpu_quirks(c); |
@@ -911,7 +912,7 @@ static struct miscdevice mce_log_device = { | |||
911 | */ | 912 | */ |
912 | static int __init mcheck_disable(char *str) | 913 | static int __init mcheck_disable(char *str) |
913 | { | 914 | { |
914 | mce_dont_init = 1; | 915 | mce_disabled = 1; |
915 | return 1; | 916 | return 1; |
916 | } | 917 | } |
917 | __setup("nomce", mcheck_disable); | 918 | __setup("nomce", mcheck_disable); |
@@ -925,7 +926,7 @@ __setup("nomce", mcheck_disable); | |||
925 | static int __init mcheck_enable(char *str) | 926 | static int __init mcheck_enable(char *str) |
926 | { | 927 | { |
927 | if (!strcmp(str, "off")) | 928 | if (!strcmp(str, "off")) |
928 | mce_dont_init = 1; | 929 | mce_disabled = 1; |
929 | else if (!strcmp(str, "bootlog") || !strcmp(str, "nobootlog")) | 930 | else if (!strcmp(str, "bootlog") || !strcmp(str, "nobootlog")) |
930 | mce_bootlog = (str[0] == 'b'); | 931 | mce_bootlog = (str[0] == 'b'); |
931 | else if (isdigit(str[0])) | 932 | else if (isdigit(str[0])) |
@@ -1292,8 +1293,6 @@ device_initcall(mce_init_device); | |||
1292 | 1293 | ||
1293 | #else /* CONFIG_X86_32: */ | 1294 | #else /* CONFIG_X86_32: */ |
1294 | 1295 | ||
1295 | int mce_disabled; | ||
1296 | |||
1297 | int nr_mce_banks; | 1296 | int nr_mce_banks; |
1298 | EXPORT_SYMBOL_GPL(nr_mce_banks); /* non-fatal.o */ | 1297 | EXPORT_SYMBOL_GPL(nr_mce_banks); /* non-fatal.o */ |
1299 | 1298 | ||