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

Since:

  82f59b16c659 ("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: 82f59b16c659 ("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