diff options
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/apic.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/x86_64/kernel/apic.c b/arch/x86_64/kernel/apic.c index 53fc17d894e8..396e125cb212 100644 --- a/arch/x86_64/kernel/apic.c +++ b/arch/x86_64/kernel/apic.c | |||
@@ -909,15 +909,13 @@ int setup_profiling_timer(unsigned int multiplier) | |||
909 | return -EINVAL; | 909 | return -EINVAL; |
910 | } | 910 | } |
911 | 911 | ||
912 | #ifdef CONFIG_X86_MCE_AMD | 912 | void setup_APIC_extened_lvt(unsigned char lvt_off, unsigned char vector, |
913 | void setup_threshold_lvt(unsigned long lvt_off) | 913 | unsigned char msg_type, unsigned char mask) |
914 | { | 914 | { |
915 | unsigned int v = 0; | 915 | unsigned long reg = (lvt_off << 4) + K8_APIC_EXT_LVT_BASE; |
916 | unsigned long reg = (lvt_off << 4) + 0x500; | 916 | unsigned int v = (mask << 16) | (msg_type << 8) | vector; |
917 | v |= THRESHOLD_APIC_VECTOR; | ||
918 | apic_write(reg, v); | 917 | apic_write(reg, v); |
919 | } | 918 | } |
920 | #endif /* CONFIG_X86_MCE_AMD */ | ||
921 | 919 | ||
922 | #undef APIC_DIVISOR | 920 | #undef APIC_DIVISOR |
923 | 921 | ||