aboutsummaryrefslogtreecommitdiff
path: root/drivers/edac/edac_mce.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2009-07-09 22:06:41 -0300
committerMauro Carvalho Chehab2010-05-10 11:44:50 -0300
commitd5381642ab01b084787925acdf26b5524d434476 (patch)
treee8d73b1a3aa701fccb57dbf7f50e60faa75a0ecc /drivers/edac/edac_mce.c
parent963c5ba35984c87963480031d1d7e2e556256ad7 (diff)
i7core_edac: Add edac_mce glue
Adds a glue code to allow i7core to work with mcelog. With the glue, i7core registers itself on edac_mce. At mce, when an error is detected, it calls all registered drivers (in this case, i7core), for EDAC error handling. TODO: It currently just prints the MCE error log using about the same format as mce panic messages. The error message should be enhanced with mcelog userspace info and converted into the proper EDAC format, to feed the EDAC error counts. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/edac_mce.c')
-rw-r--r--drivers/edac/edac_mce.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/edac/edac_mce.c b/drivers/edac/edac_mce.c
index b1efa8e51921..9ccdc5b140e7 100644
--- a/drivers/edac/edac_mce.c
+++ b/drivers/edac/edac_mce.c
@@ -41,9 +41,7 @@ void edac_mce_unregister(struct edac_mce *edac_mce)
}
EXPORT_SYMBOL(edac_mce_unregister);
-
-
-int edac_mce_queue(struct mce *mce)
+int edac_mce_parse(struct mce *mce)
{
struct edac_mce *edac_mce;
@@ -55,4 +53,9 @@ int edac_mce_queue(struct mce *mce)
/* Nobody queued the error */
return 0;
}
-EXPORT_SYMBOL_GPL(edac_mce_queue);
+EXPORT_SYMBOL_GPL(edac_mce_parse);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
+MODULE_AUTHOR("Red Hat Inc. (http://www.redhat.com)");
+MODULE_DESCRIPTION("EDAC Driver for mcelog captured errors");