powerpc/mm: Add new hash_page_mm()
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 8 Oct 2014 08:54:58 +0000 (19:54 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 8 Oct 2014 09:15:44 +0000 (20:15 +1100)
commita1dca3465a7be53980abab1e0d6646176fdc075f
treee01d711450175ec03ce894a0e9ec8969ce0ecedd
parent80c49c7e4a397bb245d72a78e41640eeb0b6e953
powerpc/mm: Add new hash_page_mm()

This adds a new function hash_page_mm() based on the existing hash_page().
This version allows any struct mm to be passed in, rather than assuming
current. This is useful for servicing co-processor faults which are not in the
context of the current running process.

We need to be careful here as the current hash_page() assumes current in a few
places.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu-hash64.h
arch/powerpc/mm/hash_utils_64.c