[RFC PATCH 9/9] powerpc: mm: Enable numa faulting for hugepages
Aneesh Kumar K.V
aneesh.kumar at linux.vnet.ibm.com
Tue Oct 22 22:28:20 EST 2013
From: "Aneesh Kumar K.V" <aneesh.kumar at linux.vnet.ibm.com>
Provide numa related functions for updating pmd entries.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
---
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
More information about the Linuxppc-dev
mailing list