aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mce_amd.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-09-02 12:33:24 -0400
committerBorislav Petkov <bp@amd64.org>2010-10-21 08:47:59 -0400
commit9cdeb404a1870c5022915e576dbdc3cde21af5bf (patch)
tree19843bf914f56f362a7c9cdf86c27a648caa475c /drivers/edac/edac_mce_amd.c
parent30e1f7a8122145f44f45c95366e27b6bb0b08428 (diff)
EDAC, MCE: Rework MCE injection
Add sysfs injection facilities for testing of the MCE decoding code. Remove large parts of amd64_edac_dbg.c, as a result, which did only NB MCE injection anyway and the new injection code supports that functionality already. Add an injection module so that MCE decoding code in production kernels like those in RHEL and SLES can be tested. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/edac_mce_amd.c')
-rw-r--r--drivers/edac/edac_mce_amd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/edac_mce_amd.c b/drivers/edac/edac_mce_amd.c
index 6cfa881888bc..c75c47b0f3ea 100644
--- a/drivers/edac/edac_mce_amd.c
+++ b/drivers/edac/edac_mce_amd.c
@@ -324,8 +324,7 @@ static inline void amd_decode_err_code(u16 ec)
324 pr_emerg(HW_ERR "Huh? Unknown MCE error 0x%x\n", ec); 324 pr_emerg(HW_ERR "Huh? Unknown MCE error 0x%x\n", ec);
325} 325}
326 326
327static int amd_decode_mce(struct notifier_block *nb, unsigned long val, 327int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
328 void *data)
329{ 328{
330 struct mce *m = (struct mce *)data; 329 struct mce *m = (struct mce *)data;
331 int node, ecc; 330 int node, ecc;
@@ -379,6 +378,7 @@ static int amd_decode_mce(struct notifier_block *nb, unsigned long val,
379 378
380 return NOTIFY_STOP; 379 return NOTIFY_STOP;
381} 380}
381EXPORT_SYMBOL_GPL(amd_decode_mce);
382 382
383static struct notifier_block amd_mce_dec_nb = { 383static struct notifier_block amd_mce_dec_nb = {
384 .notifier_call = amd_decode_mce, 384 .notifier_call = amd_decode_mce,