Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347337
b: refs/heads/master
c: 4a9d194
h: refs/heads/master
i:
  347335: 08766f6
v: v3
  • Loading branch information
David S. Miller committed Dec 19, 2012
1 parent bd9cc28 commit cac3290
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cb9c3697585c47977c42c5cc1b9fc49247ac530
refs/heads/master: 4a9d1946b0135b15d901d7e7c9796d36f352aaea
8 changes: 7 additions & 1 deletion trunk/arch/sparc/include/asm/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@ static inline unsigned long pte_present(pte_t pte)
return val;
}

#define pte_accessible pte_accessible
static inline unsigned long pte_accessible(pte_t a)
{
return pte_val(a) & _PAGE_VALID;
}

static inline unsigned long pte_special(pte_t pte)
{
return pte_val(pte) & _PAGE_SPECIAL;
Expand Down Expand Up @@ -802,7 +808,7 @@ static inline void __set_pte_at(struct mm_struct *mm, unsigned long addr,
* SUN4V NOTE: _PAGE_VALID is the same value in both the SUN4U
* and SUN4V pte layout, so this inline test is fine.
*/
if (likely(mm != &init_mm) && (pte_val(orig) & _PAGE_VALID))
if (likely(mm != &init_mm) && pte_accessible(orig))
tlb_batch_add(mm, addr, ptep, orig, fullmm);
}

Expand Down

0 comments on commit cac3290

Please sign in to comment.