x86/cpufeature: Remove cpu_has_gbpages
[linux-2.6-block.git] / arch / x86 / mm / pageattr.c
index 01be9ec3bf792f65ac91cc57fe7d64e8e644998f..fb20c2ee009228844a7799454a3c6ea7e091ce70 100644 (file)
@@ -1055,7 +1055,7 @@ static int populate_pud(struct cpa_data *cpa, unsigned long start, pgd_t *pgd,
        /*
         * Map everything starting from the Gb boundary, possibly with 1G pages
         */
-       while (cpu_has_gbpages && end - start >= PUD_SIZE) {
+       while (boot_cpu_has(X86_FEATURE_GBPAGES) && end - start >= PUD_SIZE) {
                set_pud(pud, __pud(cpa->pfn << PAGE_SHIFT | _PAGE_PSE |
                                   massage_pgprot(pud_pgprot)));