Re: [PATCH] x86/speculation: Simplify the CPU bug detection logic
From: Thomas Gleixner
Date: Wed May 23 2018 - 14:57:25 EST
On Wed, 23 May 2018, Konrad Rzeszutek Wilk wrote:
> > @@ -973,16 +965,16 @@ static void __init cpu_set_bug_bits(struct cpuinfo_x86 *c)
> > if (cpu_has(c, X86_FEATURE_ARCH_CAPABILITIES))
> > rdmsrl(MSR_IA32_ARCH_CAPABILITIES, ia32_cap);
>
> Would it make sense to move that above 'rdmsrl' and the conditional as well
> to the logic below?
I did that when I was applying the patch ....
Thanks,
tglx