Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c203dbb authored by Borislav Petkov's avatar Borislav Petkov Committed by Thomas Gleixner
Browse files

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: default avatarBorislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20161101120911.13163-3-bp@alien8.de


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent f5e886ef
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;