powerpc: introduce pte_get_hash_gslot() helper
authorRam Pai <linuxram@us.ibm.com>
Mon, 6 Nov 2017 08:50:46 +0000 (00:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Dec 2017 07:57:19 +0000 (18:57 +1100)
commit318995b4f5fa814b9f9aa434ca845b9a2cb0ae02
tree00947ca7dfccd61eb9b55cb238c61b665646223f
parent59aa31fd6f964ac63ac9cb90c8468f60e9bb0756
powerpc: introduce pte_get_hash_gslot() helper

Introduce pte_get_hash_gslot()() which returns the global slot number of
the HPTE in the global hash table.

This function will come in handy as we work towards re-arranging the PTE
bits in the later patches.

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/include/asm/book3s/64/hash.h
arch/powerpc/mm/hash_utils_64.c