]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit444a5a00f80dedd8758013b7b95fb348da083bf6
tree9d467473926adf566ac0b0e719b478c34a1b0066
parent53208c6af07d107243a4bcc4c0da793af2be3e41
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