powerpc: introduce pte_get_hash_gslot() helper
[linux-2.6-block.git] / arch / powerpc / include / asm / book3s / 64 / hash.h
index ecb1239d74f4bb4ee7c04f51a362b2be76588dfe..9099c1f3a54efd2a70aac179721ec329e9120bcb 100644 (file)
@@ -167,6 +167,9 @@ static inline int hash__pte_none(pte_t pte)
        return (pte_val(pte) & ~H_PTE_NONE_MASK) == 0;
 }
 
+unsigned long pte_get_hash_gslot(unsigned long vpn, unsigned long shift,
+               int ssize, real_pte_t rpte, unsigned int subpg_index);
+
 /* This low level function performs the actual PTE insertion
  * Setting the PTE depends on the MMU type and other factors. It's
  * an horrible mess that I'm not going to try to clean up now but