]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:12:21 +0000 (10:12 +0200)
commitea13b3246b7290ece32c378239d0d2ef3d9a51b7
treedbe4fdc3a40195b92968e93274ed6ea06e60b949
parent57bdf9527dc02449206a0e88106b7bae1ec6c7d2
x86/mce: Don't print MCEs when mcelog is active

BugLink: http://bugs.launchpad.net/bugs/1682130
commit cc66afea58f858ff6da7f79b8a595a67bbb4f9a9 upstream.

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>
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/x86/kernel/cpu/mcheck/mce.c