Commit | Line | Data |
---|---|---|
b2441318 | 1 | // SPDX-License-Identifier: GPL-2.0 |
73af76df IM |
2 | /* |
3 | * Common corrected MCE threshold handler code: | |
4 | */ | |
b2762686 | 5 | #include <linux/interrupt.h> |
73af76df IM |
6 | #include <linux/kernel.h> |
7 | ||
b2762686 | 8 | #include <asm/irq_vectors.h> |
73af76df | 9 | #include <asm/apic.h> |
73af76df | 10 | #include <asm/mce.h> |
cf910e83 | 11 | #include <asm/trace/irq_vectors.h> |
b2762686 AK |
12 | |
13 | static void default_threshold_interrupt(void) | |
14 | { | |
1b74dde7 CY |
15 | pr_err("Unexpected threshold interrupt at vector %x\n", |
16 | THRESHOLD_APIC_VECTOR); | |
b2762686 AK |
17 | } |
18 | ||
19 | void (*mce_threshold_vector)(void) = default_threshold_interrupt; | |
20 | ||
c4158ff5 | 21 | asmlinkage __visible void __irq_entry smp_threshold_interrupt(void) |
cf910e83 SA |
22 | { |
23 | entering_irq(); | |
24 | trace_threshold_apic_entry(THRESHOLD_APIC_VECTOR); | |
0f42ae28 TG |
25 | inc_irq_stat(irq_threshold_count); |
26 | mce_threshold_vector(); | |
cf910e83 SA |
27 | trace_threshold_apic_exit(THRESHOLD_APIC_VECTOR); |
28 | exiting_ack_irq(); | |
29 | } |