]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, MCE, AMD: Make APIC LVT thresholding interrupt optional
authorBorislav Petkov <borislav.petkov@amd.com>
Sat, 9 Jun 2012 15:50:15 +0000 (00:50 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:05 +0000 (23:18 +0100)
commitcb60c34ea70a5e3e4cc6b76e0c1d2385efcaafc7
treec2b5431bb46f384568143dad6a8276cf698a5e51
parent02f26d8ffc65f1ce6935d67c71819de44c91e39d
x86, MCE, AMD: Make APIC LVT thresholding interrupt optional

commit f227d4306cf30e1d5b6f231e8ef9006c34f3d186 upstream.

Currently, the APIC LVT interrupt for error thresholding is implicitly
enabled. However, there are models in the F15h range which do not enable
it. Make the code machinery which sets up the APIC interrupt support
an optional setting and add an ->interrupt_capable member to the bank
representation mirroring that capability and enable the interrupt offset
programming only if it is true.

Simplify code and fixup comment style while at it.

This patch is for stable kernels v3.0 to v3.2.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kernel/cpu/mcheck/mce_amd.c