Commit 4e5b3e69 authored by Hidetoshi Seto's avatar Hidetoshi Seto Committed by H. Peter Anvin

x86, mce: add __read_mostly

Add __read_mostly to data written during setup.
Suggested-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 7fb06fc9
...@@ -57,7 +57,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code) ...@@ -57,7 +57,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code)
void (*machine_check_vector)(struct pt_regs *, long error_code) = void (*machine_check_vector)(struct pt_regs *, long error_code) =
unexpected_machine_check; unexpected_machine_check;
int mce_disabled; int mce_disabled __read_mostly;
#ifdef CONFIG_X86_NEW_MCE #ifdef CONFIG_X86_NEW_MCE
...@@ -76,19 +76,19 @@ DEFINE_PER_CPU(unsigned, mce_exception_count); ...@@ -76,19 +76,19 @@ DEFINE_PER_CPU(unsigned, mce_exception_count);
* 2: SIGBUS or log uncorrected errors (if possible), log corrected errors * 2: SIGBUS or log uncorrected errors (if possible), log corrected errors
* 3: never panic or SIGBUS, log all errors (for testing only) * 3: never panic or SIGBUS, log all errors (for testing only)
*/ */
static int tolerant = 1; static int tolerant __read_mostly = 1;
static int banks; static int banks __read_mostly;
static u64 *bank; static u64 *bank __read_mostly;
static unsigned long notify_user; static int rip_msr __read_mostly;
static int rip_msr; static int mce_bootlog __read_mostly = -1;
static int mce_bootlog = -1; static int monarch_timeout __read_mostly = -1;
static int monarch_timeout = -1; static int mce_panic_timeout __read_mostly;
static int mce_panic_timeout; static int mce_dont_log_ce __read_mostly;
static int mce_dont_log_ce; int mce_cmci_disabled __read_mostly;
int mce_cmci_disabled; int mce_ignore_ce __read_mostly;
int mce_ignore_ce; int mce_ser __read_mostly;
int mce_ser;
static unsigned long notify_user;
static char trigger[128]; static char trigger[128];
static char *trigger_argv[2] = { trigger, NULL }; static char *trigger_argv[2] = { trigger, NULL };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment