]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/speculation: Clean up enhanced IBRS checks in bugs_64.c
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Wed, 20 Mar 2019 16:40:58 +0000 (12:40 -0400)
committerBrian Maly <brian.maly@oracle.com>
Tue, 21 May 2019 21:09:53 +0000 (17:09 -0400)
commitb2b3addc53412023565cf92ab09ce5e5248354c5
tree1f4aac90de7807bc1a8ae23ff21fc806766812b8
parenteaf305d5e7a20f3f8920a7ad006c9071239b47cf
x86/speculation: Clean up enhanced IBRS checks in bugs_64.c

There are multiple instances in bugs_64.c where the initialization
code for the various mitigations must check if enhanced IBRS is
selected as the spectre V2 mitigation. Create a short function
to do just that.

Orabug: 29423804

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/cpu/bugs_64.c