]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Remove broken prefetching in free_one_pgd()
authorDave Jones <davej@codemonkey.org.uk>
Wed, 8 Jan 2003 10:55:39 +0000 (02:55 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 8 Jan 2003 10:55:39 +0000 (02:55 -0800)
This looks extremely suspect to me, and seems like
it will prefetch past the end of the pmd, which is a no no.

mm/memory.c

index c98bf54855a5c345797427896d026b7c34f93b0a..58903820c8d966a3575e694edc1b40c833f1d283 100644 (file)
@@ -113,10 +113,8 @@ static inline void free_one_pgd(mmu_gather_t *tlb, pgd_t * dir)
        }
        pmd = pmd_offset(dir, 0);
        pgd_clear(dir);
-       for (j = 0; j < PTRS_PER_PMD ; j++) {
-               prefetchw(pmd+j+(PREFETCH_STRIDE/16));
+       for (j = 0; j < PTRS_PER_PMD ; j++)
                free_one_pmd(tlb, pmd+j);
-       }
        pmd_free_tlb(tlb, pmd);
 }