diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-09 21:06:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-10 10:44:50 -0400 |
commit | d5381642ab01b084787925acdf26b5524d434476 (patch) | |
tree | e8d73b1a3aa701fccb57dbf7f50e60faa75a0ecc /drivers/edac/edac_mce.c | |
parent | 963c5ba35984c87963480031d1d7e2e556256ad7 (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.c | 11 |
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) | |||
41 | } | 41 | } |
42 | EXPORT_SYMBOL(edac_mce_unregister); | 42 | EXPORT_SYMBOL(edac_mce_unregister); |
43 | 43 | ||
44 | 44 | int edac_mce_parse(struct mce *mce) | |
45 | |||
46 | int edac_mce_queue(struct mce *mce) | ||
47 | { | 45 | { |
48 | struct edac_mce *edac_mce; | 46 | struct edac_mce *edac_mce; |
49 | 47 | ||
@@ -55,4 +53,9 @@ int edac_mce_queue(struct mce *mce) | |||
55 | /* Nobody queued the error */ | 53 | /* Nobody queued the error */ |
56 | return 0; | 54 | return 0; |
57 | } | 55 | } |
58 | EXPORT_SYMBOL_GPL(edac_mce_queue); | 56 | EXPORT_SYMBOL_GPL(edac_mce_parse); |
57 | |||
58 | MODULE_LICENSE("GPL"); | ||
59 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||
60 | MODULE_AUTHOR("Red Hat Inc. (http://www.redhat.com)"); | ||
61 | MODULE_DESCRIPTION("EDAC Driver for mcelog captured errors"); | ||