lkml.org 
[lkml]   [2019]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86/traps: Have read_cr0() only once in the #NM handler
On 2019-01-17 13:07:28 [+0100], Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
>
> ... instead of twice in the code. In any case, CR0 ends up being read
> once anyway:
>
> 1. The CONFIG_MATH_EMULATION case does so and exits.
> 2. The normal case does it once too.
>
> However, read it on function entry instead to make the code even simpler
> to follow.

makes sense.

Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

Sebastian

\
 
 \ /
  Last update: 2019-01-17 13:15    [W:0.059 / U:10.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site