x86/cpufeature: Remove cpu_has_gbpages
[linux-2.6-block.git] / arch / x86 / mm / init.c
index 9d56f271d519592a5fbf316237f73b57b0fc49c4..14377e98f2798838140883ceb2dc52100a13a759 100644 (file)
@@ -173,7 +173,7 @@ static void __init probe_page_size_mask(void)
                __supported_pte_mask &= ~_PAGE_GLOBAL;
 
        /* Enable 1 GB linear kernel mappings if available: */
-       if (direct_gbpages && cpu_has_gbpages) {
+       if (direct_gbpages && boot_cpu_has(X86_FEATURE_GBPAGES)) {
                printk(KERN_INFO "Using GB pages for direct mapping\n");
                page_size_mask |= 1 << PG_LEVEL_1G;
        } else {