Re: [PATCH] x86/traps: Have read_cr0() only once in the #NM handler

From: Sebastian Andrzej Siewior
Date: Thu Jan 17 2019 - 07:14:25 EST

On 2019-01-17 13:07:28 [+0100], Borislav Petkov wrote:
> From: Borislav Petkov <bp@xxxxxxx>
> ... 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@xxxxxxxxxxxxx>