aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/pgtable-ppc64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/pgtable-ppc64.h')
-rw-r--r--include/asm-powerpc/pgtable-ppc64.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-powerpc/pgtable-ppc64.h b/include/asm-powerpc/pgtable-ppc64.h
index d09599cccb35..ab98a9c80b28 100644
--- a/include/asm-powerpc/pgtable-ppc64.h
+++ b/include/asm-powerpc/pgtable-ppc64.h
@@ -315,13 +315,14 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
315 return; 315 return;
316 old = pte_update(mm, addr, ptep, _PAGE_RW, 0); 316 old = pte_update(mm, addr, ptep, _PAGE_RW, 0);
317} 317}
318
318static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, 319static inline void huge_ptep_set_wrprotect(struct mm_struct *mm,
319 unsigned long addr, pte_t *ptep) 320 unsigned long addr, pte_t *ptep)
320{ 321{
321 unsigned long old; 322 unsigned long old;
322 323
323 if ((pte_val(*ptep) & _PAGE_RW) == 0) 324 if ((pte_val(*ptep) & _PAGE_RW) == 0)
324 return; 325 return;
325 old = pte_update(mm, addr, ptep, _PAGE_RW, 1); 326 old = pte_update(mm, addr, ptep, _PAGE_RW, 1);
326} 327}
327 328