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)
commitcc66afea58f858ff6da7f79b8a595a67bbb4f9a9
treecad225277454c6111e2e6ddb05735257d0df6613
parentad0376eb1483bd9880770b346f6592aece669e4c
x86/mce: Don't print MCEs when mcelog is active

Since:

  cd9c57cad3fe ("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: cd9c57cad3fe ("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