Re: [PATCH V2 1/6] x86/MCE/AMD: Factor out logging mechanism

From: Aravind Gopalakrishnan
Date: Wed May 06 2015 - 13:48:00 EST


On 5/6/2015 12:41 PM, Borislav Petkov wrote:

Yeah, let's save us the mce_setup() work in the !MCI_STATUS_VAL case:


Sure, thanks for fixing it.

+static void __log_error(unsigned int bank, bool threshold_err, u64 misc)
+{
+ struct mce m;
+ u64 status;
+
+ rdmsrl(MSR_IA32_MCx_STATUS(bank), status);
+ if (!(status & MCI_STATUS_VAL))
+ return;
+
+ mce_setup(&m);
+



-Aravind.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/