x86, MCE, AMD: Assign interrupt handler only when bank supports it
authorChen Yucong <slaoub@gmail.com>
Sat, 1 Nov 2014 10:23:32 +0000 (11:23 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 1 Nov 2014 10:28:23 +0000 (11:28 +0100)
commit8dcf32ea220d87ca517e164de85d336480c9d172
tree4d74594c26f1a6145197ca196142f563a735a0b7
parenta3a529d104ec5149fb9a667dce988635941be1ed
x86, MCE, AMD: Assign interrupt handler only when bank supports it

There are some AMD CPU models which have thresholding banks but which
cannot generate a thresholding interrupt. This is denoted by the bit
MCi_MISC[IntP]. Make sure to check that bit before assigning the
thresholding interrupt handler.

Signed-off-by: Chen Yucong <slaoub@gmail.com>
[ Boris: save an indentation level and rewrite commit message. ]
Link: http://lkml.kernel.org/r/1412662128.28440.18.camel@debian
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mcheck/mce_amd.c