]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/powerpc/include/asm/pgtable.h
x86: define _PAGE_NUMA by reusing software bits on the PMD and PTE levels
[mirror_ubuntu-zesty-kernel.git] / arch / powerpc / include / asm / pgtable.h
index 3ebb188c3ff51a5ec0d55c31ce26601354a1bef7..d98c1ecc32665444c2b046cf57952f45bdfea9fa 100644 (file)
@@ -44,6 +44,12 @@ static inline int pte_present(pte_t pte)
        return pte_val(pte) & (_PAGE_PRESENT | _PAGE_NUMA);
 }
 
+#define pte_present_nonuma pte_present_nonuma
+static inline int pte_present_nonuma(pte_t pte)
+{
+       return pte_val(pte) & (_PAGE_PRESENT);
+}
+
 #define pte_numa pte_numa
 static inline int pte_numa(pte_t pte)
 {