EDAC/ghes: Add a notifier for reporting memory errors
authorJia He <justin.he@arm.com>
Mon, 10 Oct 2022 02:35:54 +0000 (02:35 +0000)
committerBorislav Petkov <bp@suse.de>
Thu, 20 Oct 2022 11:25:53 +0000 (13:25 +0200)
commit8e40612f6146da1333e9bb5cfd9af7511c063d93
treee1621b95206741060abf52e2aac483a99b9675d9
parent5012524eb051fccbb9f8729f0de1df7b7783333b
EDAC/ghes: Add a notifier for reporting memory errors

In order to make it a proper module and disentangle it from facilities,
add a notifier for reporting memory errors. Use an atomic notifier
because calls sites like ghes_proc_in_irq() run in interrupt context.

  [ bp: Massage commit message. ]

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Jia He <justin.he@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221010023559.69655-3-justin.he@arm.com
drivers/acpi/apei/ghes.c
drivers/edac/ghes_edac.c
include/acpi/ghes.h