powerpc/mm/radix: rename _PAGE_LARGE to R_PAGE_LARGE
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 21 Mar 2017 17:29:54 +0000 (22:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 31 Mar 2017 12:09:49 +0000 (23:09 +1100)
This bit is only used by radix and it is nice to follow the naming style of having
bit name start with H_/R_ depending on which translation mode they are used.

No functional change in this patch.

Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hugetlb.h
arch/powerpc/include/asm/book3s/64/radix.h
arch/powerpc/mm/tlb-radix.c

index c62f14d0bec191e75bd1710020485324173b60ac..6666cd3665961656aaeff0dfc89d3aac43487151 100644 (file)
@@ -46,7 +46,7 @@ static inline pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma,
         */
        VM_WARN_ON(page_shift == mmu_psize_defs[MMU_PAGE_1G].shift);
        if (page_shift == mmu_psize_defs[MMU_PAGE_2M].shift)
-               return __pte(pte_val(entry) | _PAGE_LARGE);
+               return __pte(pte_val(entry) | R_PAGE_LARGE);
        else
                return entry;
 }
index 2a2ea47a9bd226aa593bd16c1e86e4e65a43ea4b..ac16d1943022a83f86e898fb7d070436eafcdbe5 100644 (file)
@@ -14,7 +14,7 @@
 /*
  * For P9 DD1 only, we need to track whether the pte's huge.
  */
-#define _PAGE_LARGE    _RPAGE_RSV1
+#define R_PAGE_LARGE   _RPAGE_RSV1
 
 
 #ifndef __ASSEMBLY__
@@ -258,7 +258,7 @@ static inline int radix__pmd_trans_huge(pmd_t pmd)
 static inline pmd_t radix__pmd_mkhuge(pmd_t pmd)
 {
        if (cpu_has_feature(CPU_FTR_POWER9_DD1))
-               return __pmd(pmd_val(pmd) | _PAGE_PTE | _PAGE_LARGE);
+               return __pmd(pmd_val(pmd) | _PAGE_PTE | R_PAGE_LARGE);
        return __pmd(pmd_val(pmd) | _PAGE_PTE);
 }
 static inline void radix__pmdp_huge_split_prepare(struct vm_area_struct *vma,
index 952713d6cf04d0e826a685f181561d587df41257..83dc1ccc2fa1a2840e79c221e85368aaf06a41fb 100644 (file)
@@ -437,7 +437,7 @@ void radix__flush_tlb_pte_p9_dd1(unsigned long old_pte, struct mm_struct *mm,
                return;
        }
 
-       if (old_pte & _PAGE_LARGE)
+       if (old_pte & R_PAGE_LARGE)
                radix__flush_tlb_page_psize(mm, address, MMU_PAGE_2M);
        else
                radix__flush_tlb_page_psize(mm, address, mmu_virtual_psize);