Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init
From: Borislav Petkov
Date: Wed Jan 20 2016 - 10:01:42 EST
On Tue, Jan 19, 2016 at 08:02:01PM -0800, H. Peter Anvin wrote:
> ... "i" (1 << (bit & 7)),
> "m" (((const char *)boot_cpu_data->x86_capability)[bit >> 3]) ...
Nice!
I was going to do:
"i" (1 << (bit & 31)),
"m" (((boot_cpu_data->x86_capability)[bit >> 5]))
:-)
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--