powerpc/mm/hash: Add helper for finding SLBE LLP encoding
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 13 Jul 2016 09:36:37 +0000 (15:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:08 +0000 (11:15 +1000)
commit138ee7ee0186dec230dde0c0774dbf5d310bdc39
treea0e0b9ca49d622a5097b680b6e399f66eba27c0a
parent8cb8140c4c93975d7db8fbfd2fd68f7a91f74a5d
powerpc/mm/hash: Add helper for finding SLBE LLP encoding

Replace opencoding of the same at multiple places with the helper.
No functional change with this patch.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/include/asm/kvm_book3s_64.h
arch/powerpc/mm/hash_native_64.c