mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/nospec: Two trivial fixes
The include of asm/cpuid.h in spec_ctrl.c was an artefact of an older version
of c/s 3860d5534d, and is not used in its current incarnation.
Fix a typo in a comment.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
09348b0c35
commit
dc2aaafe9e
2 files changed
+1
-2
No files matched your search
@@ -21,7 +21,6 @@
|
||||
#include <xen/lib.h>
|
||||
#include <xen/warning.h>
|
||||
|
||||
#include <asm/cpuid.h>
|
||||
#include <asm/microcode.h>
|
||||
#include <asm/msr.h>
|
||||
#include <asm/processor.h>
|
||||
|
||||
@@ -15,7 +15,7 @@ static always_inline bool barrier_nospec_true(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Allow to protect evaluation of conditionasl with respect to speculation */
|
||||
/* Allow to protect evaluation of conditionals with respect to speculation */
|
||||
static always_inline bool evaluate_nospec(bool condition)
|
||||
{
|
||||
return condition ? barrier_nospec_true() : !barrier_nospec_true();
|
||||
|
||||