Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / arch / x86 / mm / init.c
index 4469563f8c3b3ece258e2f5ad59d80c76bd1573f..1d553186c4345c02be5c0152764d988cfe365ae1 100644 (file)
@@ -165,7 +165,8 @@ static void __init probe_page_size_mask(void)
        if (cpu_has_pge) {
                cr4_set_bits_and_update_boot(X86_CR4_PGE);
                __supported_pte_mask |= _PAGE_GLOBAL;
-       }
+       } else
+               __supported_pte_mask &= ~_PAGE_GLOBAL;
 
        /* Enable 1 GB linear kernel mappings if available: */
        if (direct_gbpages && cpu_has_gbpages) {