powerpc/mm: define subarch SLB_ADDR_LIMIT_DEFAULT
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 25 Apr 2019 14:29:36 +0000 (14:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:23 +0000 (01:20 +1000)
commit5953fb4f4671d7d755a81017a76766c00922d059
treefea78794c7d5f2f36574988a7d35dc0ad7cca1c0
parent43ed7909d70a61c621cadb5d808dc392ad537e5a
powerpc/mm: define subarch SLB_ADDR_LIMIT_DEFAULT

This patch defines a subarch specific SLB_ADDR_LIMIT_DEFAULT
to remove the #ifdefs around the setup of mm->context.slb_addr_limit

It also generalises the use of mm_ctx_set_slb_addr_limit() helper.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/slice.h
arch/powerpc/include/asm/nohash/32/slice.h
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/nohash/tlb.c
arch/powerpc/mm/slice.c