]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a8a8728b29052b6fa426bc99c28a79b24b56578
tree4d74594c26f1a6145197ca196142f563a735a0b7
parenta02f77816181fa41095901367f35ec425382320b
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