aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-01-25 12:31:12 -0500
committerChris Metcalf <cmetcalf@tilera.com>2011-02-23 15:58:09 -0500
commit342d87ef21cef81b5af973c52bc1ab4e70c8b877 (patch)
tree7c41b59142ce05df23c6f09fbcce58a1675e4d55 /arch/tile
parentcddb5de0531738b1adcebca8186e7078fd8c33fd (diff)
tile: Fix __pte_free_tlb
Tile's __pte_free_tlb() implementation makes assumptions about the generic mmu_gather implementation, cure this ;-) Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/mm/pgtable.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c
index 1f5430c53d0d..2c850d9864e3 100644
--- a/arch/tile/mm/pgtable.c
+++ b/arch/tile/mm/pgtable.c
@@ -252,19 +252,8 @@ void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte,
252 int i; 252 int i;
253 253
254 pgtable_page_dtor(pte); 254 pgtable_page_dtor(pte);
255 tlb->need_flush = 1; 255 for (i = 0; i < L2_USER_PGTABLE_PAGES; ++i)
256 if (tlb_fast_mode(tlb)) { 256 tlb_remove_page(tlb, pte + i);
257 struct page *pte_pages[L2_USER_PGTABLE_PAGES];
258 for (i = 0; i < L2_USER_PGTABLE_PAGES; ++i)
259 pte_pages[i] = pte + i;
260 free_pages_and_swap_cache(pte_pages, L2_USER_PGTABLE_PAGES);
261 return;
262 }
263 for (i = 0; i < L2_USER_PGTABLE_PAGES; ++i) {
264 tlb->pages[tlb->nr++] = pte + i;
265 if (tlb->nr >= FREE_PTE_NR)
266 tlb_flush_mmu(tlb, 0, 0);
267 }
268} 257}
269 258
270#ifndef __tilegx__ 259#ifndef __tilegx__