powerpc/mm: Use mm_is_thread_local() instread of open-coding
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 24 Jul 2017 04:28:01 +0000 (14:28 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2017 12:27:45 +0000 (22:27 +1000)
commitb426e4bd77fa2f03723cc0bada80b00c664f67da
tree23f91e12eb43460dfc9aa0f6d912c88b374d6f7d
parent058ccc3465d9b8fb34d59ca099a8a7ace1a62cdd
powerpc/mm: Use mm_is_thread_local() instread of open-coding

We open-code testing for the mm being local to the current CPU
in a few places. Use our existing helper instead.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/pgtable-hash64.c
arch/powerpc/mm/tlb_hash64.c