diff options
author | Borislav Petkov <[email protected]> | 2016-11-01 13:04:41 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-11-08 17:10:13 +0100 |
commit | 8c203dbb78ca7a9aed4e2570c866b0f43c752e41 (patch) | |
tree | b2c0a1b6c9733436317a823f8a5c2505227bb7b6 | |
parent | f5e886ef9b45a3dbfd42b054a13c755894ea8402 (diff) |
x86/RAS: Add TSC timestamp to the injected MCE
The MCE injection code does not provide the time stamp information for the
injected MCE. Add it.
Signed-off-by: Borislav Petkov <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
-rw-r--r-- | arch/x86/ras/mce_amd_inj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/ras/mce_amd_inj.c b/arch/x86/ras/mce_amd_inj.c index 1ac76479c266..8730c2882fff 100644 --- a/arch/x86/ras/mce_amd_inj.c +++ b/arch/x86/ras/mce_amd_inj.c @@ -275,6 +275,8 @@ static void do_inject(void) unsigned int cpu = i_mce.extcpu; u8 b = i_mce.bank; + rdtscll(i_mce.tsc); + if (i_mce.misc) i_mce.status |= MCI_STATUS_MISCV; |