]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Make hpte_need_flush() correctly mask for multiple page sizes
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 26 Oct 2009 19:24:31 +0000 (19:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Oct 2009 06:20:57 +0000 (17:20 +1100)
commit030e7060a0b823d9bb1a9917c252e6822584c06f
treeb72d97c2db323ab94399cd2633108c0a00a5da31
parentd6ddf5eb13e82e36fb7954b5d93e4ce7a9f9e40d
powerpc/mm: Make hpte_need_flush() correctly mask for multiple page sizes

Currently, hpte_need_flush() only correctly flushes the given address
for normal pages.  Callers for hugepages are required to mask the
address themselves.

But hpte_need_flush() already looks up the page sizes for its own
reasons, so this is a rather silly imposition on the callers.  This
patch alters it to mask based on the pagesize it has looked up itself,
and removes the awkward masking code in the hugepage caller.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/tlb_hash64.c