lkml.org 
[lkml]   [2015]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 1/6] x86/MCE/AMD: Factor out logging mechanism
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.


\
 
 \ /
  Last update: 2015-05-06 20:21    [W:0.050 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site