]> git.itanic.dy.fi Git - linux-stable/commit
x86, MCE, AMD: Make APIC LVT thresholding interrupt optional
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 16 Apr 2012 16:01:53 +0000 (18:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2012 18:21:23 +0000 (11:21 -0700)
commitcc3aeacdba55676938fc11e00e13699141b9aeb8
tree3c5b620651414bc505e9aa6f4c588e45c2232a20
parent8d9fe5b77cbabd1805b30418ba32b3c1389303d0
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.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Cc: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/mcheck/mce_amd.c