Merge tag 'x86_cleanups_for_v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / x86 / mm / pti.c
index 1aab92930569af4542db384dabd46a56a6890662..5d5c7bb50ce9e2e9646f783d26adb1e33ea094aa 100644 (file)
@@ -361,7 +361,7 @@ pti_clone_pgtable(unsigned long start, unsigned long end,
                         * global, so set it as global in both copies.  Note:
                         * the X86_FEATURE_PGE check is not _required_ because
                         * the CPU ignores _PAGE_GLOBAL when PGE is not
-                        * supported.  The check keeps consistentency with
+                        * supported.  The check keeps consistency with
                         * code that only set this bit when supported.
                         */
                        if (boot_cpu_has(X86_FEATURE_PGE))
@@ -440,10 +440,9 @@ static void __init pti_clone_user_shared(void)
 
        for_each_possible_cpu(cpu) {
                /*
-                * The SYSCALL64 entry code needs to be able to find the
-                * thread stack and needs one word of scratch space in which
-                * to spill a register.  All of this lives in the TSS, in
-                * the sp1 and sp2 slots.
+                * The SYSCALL64 entry code needs one word of scratch space
+                * in which to spill a register.  It lives in the sp2 slot
+                * of the CPU's TSS.
                 *
                 * This is done for all possible CPUs during boot to ensure
                 * that it's propagated to all mms.
@@ -512,7 +511,7 @@ static void pti_clone_entry_text(void)
 static inline bool pti_kernel_image_global_ok(void)
 {
        /*
-        * Systems with PCIDs get litlle benefit from global
+        * Systems with PCIDs get little benefit from global
         * kernel text and are not worth the downsides.
         */
        if (cpu_feature_enabled(X86_FEATURE_PCID))