]> 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)
commitf38dd251054eab69e43f51a7879513866668bfdc
tree9d467473926adf566ac0b0e719b478c34a1b0066
parentadcfeda55830e9972b444c3ab308744da67306ee
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