|
@@ -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
|
|
* Map everything starting from the Gb boundary, possibly with 1G pages
|
|
*/
|
|
*/
|
|
- while (end - start >= PUD_SIZE) {
|
|
|
|
|
|
+ while (cpu_has_gbpages && end - start >= PUD_SIZE) {
|
|
set_pud(pud, __pud(cpa->pfn << PAGE_SHIFT | _PAGE_PSE |
|
|
set_pud(pud, __pud(cpa->pfn << PAGE_SHIFT | _PAGE_PSE |
|
|
massage_pgprot(pud_pgprot)));
|
|
massage_pgprot(pud_pgprot)));
|
|
|
|
|