x86/alternative: Use ALTERNATIVE_TERNARY() in _static_cpu_has()
authorJuergen Gross <jgross@suse.com>
Thu, 11 Mar 2021 14:23:12 +0000 (15:23 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 18:33:43 +0000 (19:33 +0100)
commit2fe2a2c7a97c9bc32acc79154b75e754280f7867
tree61c4526ddf4317bc95604eeb97e1c49c9eed0d0c
parente208b3c4a9748b2c17aa09ba663b5096ccf82dce
x86/alternative: Use ALTERNATIVE_TERNARY() in _static_cpu_has()

_static_cpu_has() contains a completely open coded version of
ALTERNATIVE_TERNARY(). Replace that with the macro instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210311142319.4723-8-jgross@suse.com
arch/x86/include/asm/cpufeature.h