Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init

From: Borislav Petkov
Date: Sat Jan 16 2016 - 14:37:48 EST

On Sat, Jan 16, 2016 at 02:22:04PM -0500, Brian Gerst wrote:
> Move the code to do the dynamic check to the init text section so that it
> is discarded after alternatives have run and a static branch has been
> chosen.
> A new section is defined to avoid warnings with modpost due to references
> to init text from main text, which in this case is legitimate. All such
> references are patched out before init mem is discarded.

And we're doing this because...? Space savings? How much are we talkin'?


SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)