ghes: add the needed hooks for EDAC error report
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 15 Feb 2013 09:10:39 +0000 (06:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Feb 2013 22:41:51 +0000 (19:41 -0300)
commit21480547c8b85be6c08c4d77ed514673b73eda8a
tree1ea79a66c55128e36cfc4334bd6f00db3593e9fc
parent40e064153814ce534a28714b25cb98259f107d96
ghes: add the needed hooks for EDAC error report

In order to allow reporting errors via EDAC, add hooks for:

1) register an EDAC driver;
2) unregister an EDAC driver;
3) report errors via EDAC.

As the EDAC driver will need to access the ghes structure, adds it
as one of the parameters for ghes_do_proc.

Acked-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/acpi/apei/ghes.c
include/acpi/ghes.h