powerpc/mm/radix/hugetlb: Add helper for finding page size from hstate
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 13 Jul 2016 09:36:42 +0000 (15:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:12 +0000 (11:15 +1000)
commitfbfa26d85418a155feacdb0f73cbf938f1027a8c
tree342c1144e45ac898e1ea9286b0a6109267a539b7
parentf22dfc9158a8a999325e5aeb4b2ceda553430575
powerpc/mm/radix/hugetlb: Add helper for finding page size from hstate

Use the helper instead of open coding the same at multiple place

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/hugetlb-radix.h
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h
arch/powerpc/mm/hugetlbpage-radix.c
arch/powerpc/mm/tlb-radix.c