]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitace11cc2f2d43cd3bf006ea34195a76bf2ecceb1
tree61c4526ddf4317bc95604eeb97e1c49c9eed0d0c
parentb44482707cbf7130f56fc50fe354ee75591a0cbc
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