x86, MCE, AMD: Correct thresholding error logging
authorChen Yucong <slaoub@gmail.com>
Thu, 2 Oct 2014 12:48:19 +0000 (14:48 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 21 Oct 2014 20:12:22 +0000 (22:12 +0200)
commit44612a3ac671d7b9a9b987ab73dcc776204ac4d5
tree7189899574cdc8ef4ac3b4808e52861076bd58dd
parent4b737d78a8081cb2def7ced262a212c31363539a
x86, MCE, AMD: Correct thresholding error logging

mce_setup() does not gather the content of IA32_MCG_STATUS, so it
should be read explicitly. Moreover, we need to clear IA32_MCx_STATUS
to avoid that mce_log() logs the processed threshold event again
at next time.

But we do the logging ourselves and machine_check_poll() is completely
useless there. So kill it.

Signed-off-by: Chen Yucong <slaoub@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mcheck/mce_amd.c