Skip to content

Commit 8c203db

Browse files
suryasaimadhuKAGA-KOKO
authored andcommitted
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]>
1 parent f5e886e commit 8c203db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/ras/mce_amd_inj.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ static void do_inject(void)
275275
unsigned int cpu = i_mce.extcpu;
276276
u8 b = i_mce.bank;
277277

278+
rdtscll(i_mce.tsc);
279+
278280
if (i_mce.misc)
279281
i_mce.status |= MCI_STATUS_MISCV;
280282

0 commit comments

Comments
 (0)