From: "Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Provide numa related functions for updating pmd entries. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> --- arch/powerpc/include/asm/pgtable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index 67ea8fb..aa3add7 100644 --- a/arch/powerpc/include/asm/pgtable.h +++ b/arch/powerpc/include/asm/pgtable.h @@ -95,19 +95,19 @@ static inline void change_pmd_protnuma(struct mm_struct *mm, unsigned long addr, #define pmd_numa pmd_numa static inline int pmd_numa(pmd_t pmd) { - return 0; + return pte_numa(pmd_pte(pmd)); } #define pmd_mknonnuma pmd_mknonnuma static inline pmd_t pmd_mknonnuma(pmd_t pmd) { - return pmd; + return pte_pmd(pte_mknonnuma(pmd_pte(pmd))); } #define pmd_mknuma pmd_mknuma static inline pmd_t pmd_mknuma(pmd_t pmd) { - return pmd; + return pte_pmd(pte_mknuma(pmd_pte(pmd))); } # else -- 1.8.3.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>