[PATCH] x86_64: Support for AMD specific MCE Threshold.
[deliverable/linux.git] / arch / x86_64 / kernel / apic.c
index b6e7715d877f38a0d191616c22dc7f9fe98e4509..18691ce4c75921ff84bd09d4f37766511e09247a 100644 (file)
@@ -833,6 +833,16 @@ int setup_profiling_timer(unsigned int multiplier)
        return 0;
 }
 
+#ifdef CONFIG_X86_MCE_AMD
+void setup_threshold_lvt(unsigned long lvt_off)
+{
+       unsigned int v = 0;
+       unsigned long reg = (lvt_off << 4) + 0x500;
+       v |= THRESHOLD_APIC_VECTOR;
+       apic_write(reg, v);
+}
+#endif /* CONFIG_X86_MCE_AMD */
+
 #undef APIC_DIVISOR
 
 /*
This page took 0.094397 seconds and 5 git commands to generate.