]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Don't print MCEs when mcelog is active
authorAndi Kleen <ak@linux.intel.com>
Mon, 27 Mar 2017 09:32:59 +0000 (11:32 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Mar 2017 06:53:52 +0000 (08:53 +0200)
commit8f4792b680a4dcf29ab2d4e78bcb9bca71deda22
treecad225277454c6111e2e6ddb05735257d0df6613
parent03ddaa5d10c11ce768a6e7cb483e4cadedee1055
x86/mce: Don't print MCEs when mcelog is active

Since:

  479cd2be983d ("x86/MCE: Dump MCE to dmesg if no consumers")

all MCEs are printed even when mcelog is running. Fix the regression to
not print to dmesg when mcelog is running as it is a consumer too.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
[ Massage commit message. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: stable@vger.kernel.org # 4.10..
Fixes: 479cd2be983d ("x86/MCE: Dump MCE to dmesg if no consumers")
Link: http://lkml.kernel.org/r/20170327093304.10683-2-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/mcheck/mce.c