diff options
Diffstat (limited to 'arch/tile/mm')
-rw-r--r-- | arch/tile/mm/fault.c | 2 | ||||
-rw-r--r-- | arch/tile/mm/init.c | 4 | ||||
-rw-r--r-- | arch/tile/mm/pgtable.c | 3 |
3 files changed, 1 insertions, 8 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c index 4c288f199453..6c0571216a9d 100644 --- a/arch/tile/mm/fault.c +++ b/arch/tile/mm/fault.c | |||
@@ -149,8 +149,6 @@ static inline int vmalloc_fault(pgd_t *pgd, unsigned long address) | |||
149 | pmd_k = vmalloc_sync_one(pgd, address); | 149 | pmd_k = vmalloc_sync_one(pgd, address); |
150 | if (!pmd_k) | 150 | if (!pmd_k) |
151 | return -1; | 151 | return -1; |
152 | if (pmd_huge(*pmd_k)) | ||
153 | return 0; /* support TILE huge_vmap() API */ | ||
154 | pte_k = pte_offset_kernel(pmd_k, address); | 152 | pte_k = pte_offset_kernel(pmd_k, address); |
155 | if (!pte_present(*pte_k)) | 153 | if (!pte_present(*pte_k)) |
156 | return -1; | 154 | return -1; |
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c index 4e316deb92fd..0fa1acfac79a 100644 --- a/arch/tile/mm/init.c +++ b/arch/tile/mm/init.c | |||
@@ -828,10 +828,6 @@ void __init mem_init(void) | |||
828 | printk(KERN_DEBUG " PKMAP %#lx - %#lx\n", | 828 | printk(KERN_DEBUG " PKMAP %#lx - %#lx\n", |
829 | PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP) - 1); | 829 | PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP) - 1); |
830 | #endif | 830 | #endif |
831 | #ifdef CONFIG_HUGEVMAP | ||
832 | printk(KERN_DEBUG " HUGEMAP %#lx - %#lx\n", | ||
833 | HUGE_VMAP_BASE, HUGE_VMAP_END - 1); | ||
834 | #endif | ||
835 | printk(KERN_DEBUG " VMALLOC %#lx - %#lx\n", | 831 | printk(KERN_DEBUG " VMALLOC %#lx - %#lx\n", |
836 | _VMALLOC_START, _VMALLOC_END - 1); | 832 | _VMALLOC_START, _VMALLOC_END - 1); |
837 | #ifdef __tilegx__ | 833 | #ifdef __tilegx__ |
diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c index 2deaddf3e01f..4fd9ec0b58ed 100644 --- a/arch/tile/mm/pgtable.c +++ b/arch/tile/mm/pgtable.c | |||
@@ -127,8 +127,7 @@ void shatter_huge_page(unsigned long addr) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /* Shatter the huge page into the preallocated L2 page table. */ | 129 | /* Shatter the huge page into the preallocated L2 page table. */ |
130 | pmd_populate_kernel(&init_mm, pmd, | 130 | pmd_populate_kernel(&init_mm, pmd, get_prealloc_pte(pmd_pfn(*pmd))); |
131 | get_prealloc_pte(pte_pfn(*(pte_t *)pmd))); | ||
132 | 131 | ||
133 | #ifdef __PAGETABLE_PMD_FOLDED | 132 | #ifdef __PAGETABLE_PMD_FOLDED |
134 | /* Walk every pgd on the system and update the pmd there. */ | 133 | /* Walk every pgd on the system and update the pmd there. */ |