[PATCH 7/9] EDAC/mce_amd: Dump TSC value

From: Borislav Petkov
Date: Mon Jan 23 2017 - 13:37:22 EST


From: Borislav Petkov <bp@xxxxxxx>

Dump the TSC value of the time when the MCE got logged.

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
---
drivers/edac/mce_amd.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index 5cd3c39bc695..ecad750fd090 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -1007,6 +1007,9 @@ amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
} else
pr_cont("\n");

+ if (m->tsc)
+ pr_emerg(HW_ERR "TSC: %llu\n", m->tsc);
+
if (!fam_ops)
goto err_code;

--
2.11.0