Commit a58672d5 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Remove broken prefetching in free_one_pgd()

This looks extremely suspect to me, and seems like
it will prefetch past the end of the pmd, which is a no no.
parent 9d41d4d7
...@@ -113,10 +113,8 @@ static inline void free_one_pgd(mmu_gather_t *tlb, pgd_t * dir) ...@@ -113,10 +113,8 @@ static inline void free_one_pgd(mmu_gather_t *tlb, pgd_t * dir)
} }
pmd = pmd_offset(dir, 0); pmd = pmd_offset(dir, 0);
pgd_clear(dir); pgd_clear(dir);
for (j = 0; j < PTRS_PER_PMD ; j++) { for (j = 0; j < PTRS_PER_PMD ; j++)
prefetchw(pmd+j+(PREFETCH_STRIDE/16));
free_one_pmd(tlb, pmd+j); free_one_pmd(tlb, pmd+j);
}
pmd_free_tlb(tlb, pmd); pmd_free_tlb(tlb, pmd);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment