Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init
From: Borislav Petkov
Date: Mon Jan 18 2016 - 13:39:52 EST
On Mon, Jan 18, 2016 at 10:29:24AM -0800, Andy Lutomirski wrote:
> I think that, if we can make static_cpu_has be unconditionally safe as
> a result
Problem with this is the additional .altinstructions entry for
X86_FEATURE_ALWAYS. And sometimes you don't really need to use the _safe
variant when you know you're safe.
> and get rid of warn_pre_alternatives,
That's off by default, behind CONFIG_X86_DEBUG_STATIC_CPU_HAS.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--