]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
x86/nospec: Two trivial fixes
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Sep 2019 17:25:21 +0000 (18:25 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Oct 2019 15:35:41 +0000 (16:35 +0100)
The include of asm/cpuid.h in spec_ctrl.c was an artefact of an older version
of c/s 3860d5534df, 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>
xen/arch/x86/spec_ctrl.c
xen/include/asm-x86/nospec.h

index 731d5a767b3837f96b75319f4b16ef4f1b7af31f..ee5439a371c108b4936cdeada7496828f74d6443 100644 (file)
@@ -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>
index 2aa47b3455a6ac24136989a41aca95fb41e24af4..427b5ff9df23d130edeff72cd145833101b02dbd 100644 (file)
@@ -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();