]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/radix: Update Radix tree size as per ISA 3.0
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 17 Jun 2016 06:10:36 +0000 (11:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Jun 2016 09:50:55 +0000 (19:50 +1000)
commitf34ad126f1e2e1a42a3e5cf69a49b02a7e29d50d
tree4168138d955040013dbe4a053c8559324415f002
parentbaf424dd6e624a1877a9bb30ae87af14990767bc
powerpc/mm/radix: Update Radix tree size as per ISA 3.0

ISA 3.0 updated it to be encoded as Radix tree size = 2^(RTS + 31). We
have it encoded as 2^(RTS + 28). Add a helper with the correct encoding
and use it instead of opencoding.

Fixes: 0fe690ad9db8 ("powerpc/mm/radix: Add radix callbacks for early init routines")
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
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/radix.h
arch/powerpc/mm/mmu_context_book3s64.c
arch/powerpc/mm/pgtable-radix.c