x86/mce: Convert the CEC to use the MCE notifier
authorTony Luck <tony.luck@intel.com>
Fri, 14 Feb 2020 22:27:15 +0000 (14:27 -0800)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Apr 2020 13:58:08 +0000 (15:58 +0200)
commit9554bfe403bdfc084823df8695a01f28c680af61
tree6d0a39f38f1ccf00252dda299a6d56de943dcbca
parentc9c6d216ed28be6e2c91e3651af169eca284813a
x86/mce: Convert the CEC to use the MCE notifier

The CEC code has its claws in a couple of routines in mce/core.c.
Convert it to just register itself on the normal MCE notifier chain.

 [ bp: Make cec_add_elem() and cec_init() static. ]

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200214222720.13168-3-tony.luck@intel.com
arch/x86/kernel/cpu/mce/core.c
drivers/ras/cec.c
include/linux/ras.h