powerpc/pseries/mm: factorize PTE slot computation
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Mon, 20 Aug 2018 14:29:35 +0000 (16:29 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 Sep 2018 11:17:25 +0000 (21:17 +1000)
commit0effa488dc1ad082ceed44b5d38c29fd8b3f259e
tree0d8125fc13d34f98d494e0e1da9c41e5c56b6200
parent5600fbe340331e2a25d1b277f9c190f5c9948038
powerpc/pseries/mm: factorize PTE slot computation

This part of code will be called also when dealing with H_BLOCK_REMOVE.

Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/lpar.c