diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/mce.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce-inject.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 10 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_intel_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/signal.c | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index afd3cdf6f8ad..713926b62cbb 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h | |||
@@ -159,7 +159,7 @@ enum mcp_flags { | |||
159 | }; | 159 | }; |
160 | void machine_check_poll(enum mcp_flags flags, mce_banks_t *b); | 160 | void machine_check_poll(enum mcp_flags flags, mce_banks_t *b); |
161 | 161 | ||
162 | int mce_notify_user(void); | 162 | int mce_notify_irq(void); |
163 | 163 | ||
164 | DECLARE_PER_CPU(struct mce, injectm); | 164 | DECLARE_PER_CPU(struct mce, injectm); |
165 | extern struct file_operations mce_chrdev_ops; | 165 | extern struct file_operations mce_chrdev_ops; |
diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arch/x86/kernel/cpu/mcheck/mce-inject.c index 7d858fb4ce67..a3a235a53f09 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-inject.c +++ b/arch/x86/kernel/cpu/mcheck/mce-inject.c | |||
@@ -65,7 +65,7 @@ static void raise_mce(unsigned long data) | |||
65 | memset(&b, 0xff, sizeof(mce_banks_t)); | 65 | memset(&b, 0xff, sizeof(mce_banks_t)); |
66 | printk(KERN_INFO "Starting machine check poll CPU %d\n", cpu); | 66 | printk(KERN_INFO "Starting machine check poll CPU %d\n", cpu); |
67 | machine_check_poll(0, &b); | 67 | machine_check_poll(0, &b); |
68 | mce_notify_user(); | 68 | mce_notify_irq(); |
69 | printk(KERN_INFO "Finished machine check poll on CPU %d\n", | 69 | printk(KERN_INFO "Finished machine check poll on CPU %d\n", |
70 | cpu); | 70 | cpu); |
71 | } | 71 | } |
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index f051a7807ab4..13e1b7ffe73a 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
@@ -348,7 +348,7 @@ asmlinkage void smp_mce_self_interrupt(struct pt_regs *regs) | |||
348 | ack_APIC_irq(); | 348 | ack_APIC_irq(); |
349 | exit_idle(); | 349 | exit_idle(); |
350 | irq_enter(); | 350 | irq_enter(); |
351 | mce_notify_user(); | 351 | mce_notify_irq(); |
352 | irq_exit(); | 352 | irq_exit(); |
353 | } | 353 | } |
354 | #endif | 354 | #endif |
@@ -356,7 +356,7 @@ asmlinkage void smp_mce_self_interrupt(struct pt_regs *regs) | |||
356 | static void mce_report_event(struct pt_regs *regs) | 356 | static void mce_report_event(struct pt_regs *regs) |
357 | { | 357 | { |
358 | if (regs->flags & (X86_VM_MASK|X86_EFLAGS_IF)) { | 358 | if (regs->flags & (X86_VM_MASK|X86_EFLAGS_IF)) { |
359 | mce_notify_user(); | 359 | mce_notify_irq(); |
360 | return; | 360 | return; |
361 | } | 361 | } |
362 | 362 | ||
@@ -968,7 +968,7 @@ static void mcheck_timer(unsigned long data) | |||
968 | * polling interval, otherwise increase the polling interval. | 968 | * polling interval, otherwise increase the polling interval. |
969 | */ | 969 | */ |
970 | n = &__get_cpu_var(next_interval); | 970 | n = &__get_cpu_var(next_interval); |
971 | if (mce_notify_user()) | 971 | if (mce_notify_irq()) |
972 | *n = max(*n/2, HZ/100); | 972 | *n = max(*n/2, HZ/100); |
973 | else | 973 | else |
974 | *n = min(*n*2, (int)round_jiffies_relative(check_interval*HZ)); | 974 | *n = min(*n*2, (int)round_jiffies_relative(check_interval*HZ)); |
@@ -989,7 +989,7 @@ static DECLARE_WORK(mce_trigger_work, mce_do_trigger); | |||
989 | * Can be called from interrupt context, but not from machine check/NMI | 989 | * Can be called from interrupt context, but not from machine check/NMI |
990 | * context. | 990 | * context. |
991 | */ | 991 | */ |
992 | int mce_notify_user(void) | 992 | int mce_notify_irq(void) |
993 | { | 993 | { |
994 | /* Not more than two messages every minute */ | 994 | /* Not more than two messages every minute */ |
995 | static DEFINE_RATELIMIT_STATE(ratelimit, 60*HZ, 2); | 995 | static DEFINE_RATELIMIT_STATE(ratelimit, 60*HZ, 2); |
@@ -1014,7 +1014,7 @@ int mce_notify_user(void) | |||
1014 | } | 1014 | } |
1015 | return 0; | 1015 | return 0; |
1016 | } | 1016 | } |
1017 | EXPORT_SYMBOL_GPL(mce_notify_user); | 1017 | EXPORT_SYMBOL_GPL(mce_notify_irq); |
1018 | 1018 | ||
1019 | /* | 1019 | /* |
1020 | * Initialize Machine Checks for a CPU. | 1020 | * Initialize Machine Checks for a CPU. |
diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel_64.c b/arch/x86/kernel/cpu/mcheck/mce_intel_64.c index eff3740501a3..b7c5a2470b40 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_intel_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_intel_64.c | |||
@@ -80,7 +80,7 @@ static int cmci_supported(int *banks) | |||
80 | static void intel_threshold_interrupt(void) | 80 | static void intel_threshold_interrupt(void) |
81 | { | 81 | { |
82 | machine_check_poll(MCP_TIMESTAMP, &__get_cpu_var(mce_banks_owned)); | 82 | machine_check_poll(MCP_TIMESTAMP, &__get_cpu_var(mce_banks_owned)); |
83 | mce_notify_user(); | 83 | mce_notify_irq(); |
84 | } | 84 | } |
85 | 85 | ||
86 | static void print_update(char *type, int *hdr, int num) | 86 | static void print_update(char *type, int *hdr, int num) |
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index d0851e3f77eb..d5dc15bce005 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c | |||
@@ -860,7 +860,7 @@ do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_info_flags) | |||
860 | #ifdef CONFIG_X86_NEW_MCE | 860 | #ifdef CONFIG_X86_NEW_MCE |
861 | /* notify userspace of pending MCEs */ | 861 | /* notify userspace of pending MCEs */ |
862 | if (thread_info_flags & _TIF_MCE_NOTIFY) | 862 | if (thread_info_flags & _TIF_MCE_NOTIFY) |
863 | mce_notify_user(); | 863 | mce_notify_irq(); |
864 | #endif /* CONFIG_X86_64 && CONFIG_X86_MCE */ | 864 | #endif /* CONFIG_X86_64 && CONFIG_X86_MCE */ |
865 | 865 | ||
866 | /* deal with pending signal delivery */ | 866 | /* deal with pending signal delivery */ |