]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kernel/cpu/bugs.c
x86/speculation: Merge one test in spectre_v2_user_select_mitigation()
authorBorislav Petkov <bp@suse.de>
Mon, 15 Jun 2020 06:51:25 +0000 (08:51 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 16 Jun 2020 21:14:47 +0000 (23:14 +0200)
commita5ce9f2bb665d1d2b31f139a02dbaa2dfbb62fa6
tree11fa6b8e87974918205ab28df45ccfa72aa305dc
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
x86/speculation: Merge one test in spectre_v2_user_select_mitigation()

Merge the test whether the CPU supports STIBP into the test which
determines whether STIBP is required. Thus try to simplify what is
already an insane logic.

Remove a superfluous newline in a comment, while at it.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Anthony Steinhauser <asteinhauser@google.com>
Link: https://lkml.kernel.org/r/20200615065806.GB14668@zn.tnic
arch/x86/kernel/cpu/bugs.c