OSDN Git Service

powerpc: use helper functions to get and set hash slots
authorRam Pai <linuxram@us.ibm.com>
Mon, 6 Nov 2017 08:50:51 +0000 (00:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Dec 2017 07:57:25 +0000 (18:57 +1100)
commita8548686463b67d66084d51a2737dc8d49369876
tree9d467473926adf566ac0b0e719b478c34a1b0066
parent273b49368966559dd155323c64ec3421e8f4049d
powerpc: use helper functions to get and set hash slots

replace redundant code in __hash_page_4K() and flush_hash_page()
with helper functions pte_get_hash_gslot() and pte_set_hidx()

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash64_4k.c
arch/powerpc/mm/hash_utils_64.c