diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2009-06-15 04:20:20 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-16 19:56:05 -0400 |
commit | 4e5b3e690dda890523e93af9c545261f5916a3a6 (patch) | |
tree | fb823e034ce437dcb7238da9ab906140432c407e /arch | |
parent | 7fb06fc9672b947424e05871243a4c8e19ec3bce (diff) |
x86, mce: add __read_mostly
Add __read_mostly to data written during setup.
Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 739fd7eca0a4..2d2e0b565a9c 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
@@ -57,7 +57,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code) | |||
57 | void (*machine_check_vector)(struct pt_regs *, long error_code) = | 57 | void (*machine_check_vector)(struct pt_regs *, long error_code) = |
58 | unexpected_machine_check; | 58 | unexpected_machine_check; |
59 | 59 | ||
60 | int mce_disabled; | 60 | int mce_disabled __read_mostly; |
61 | 61 | ||
62 | #ifdef CONFIG_X86_NEW_MCE | 62 | #ifdef CONFIG_X86_NEW_MCE |
63 | 63 | ||
@@ -76,19 +76,19 @@ DEFINE_PER_CPU(unsigned, mce_exception_count); | |||
76 | * 2: SIGBUS or log uncorrected errors (if possible), log corrected errors | 76 | * 2: SIGBUS or log uncorrected errors (if possible), log corrected errors |
77 | * 3: never panic or SIGBUS, log all errors (for testing only) | 77 | * 3: never panic or SIGBUS, log all errors (for testing only) |
78 | */ | 78 | */ |
79 | static int tolerant = 1; | 79 | static int tolerant __read_mostly = 1; |
80 | static int banks; | 80 | static int banks __read_mostly; |
81 | static u64 *bank; | 81 | static u64 *bank __read_mostly; |
82 | static unsigned long notify_user; | 82 | static int rip_msr __read_mostly; |
83 | static int rip_msr; | 83 | static int mce_bootlog __read_mostly = -1; |
84 | static int mce_bootlog = -1; | 84 | static int monarch_timeout __read_mostly = -1; |
85 | static int monarch_timeout = -1; | 85 | static int mce_panic_timeout __read_mostly; |
86 | static int mce_panic_timeout; | 86 | static int mce_dont_log_ce __read_mostly; |
87 | static int mce_dont_log_ce; | 87 | int mce_cmci_disabled __read_mostly; |
88 | int mce_cmci_disabled; | 88 | int mce_ignore_ce __read_mostly; |
89 | int mce_ignore_ce; | 89 | int mce_ser __read_mostly; |
90 | int mce_ser; | ||
91 | 90 | ||
91 | static unsigned long notify_user; | ||
92 | static char trigger[128]; | 92 | static char trigger[128]; |
93 | static char *trigger_argv[2] = { trigger, NULL }; | 93 | static char *trigger_argv[2] = { trigger, NULL }; |
94 | 94 | ||