Skip to content

Commit

Permalink
[MIPS] Use pte_present instead of open coded test for _PAGE_PRESENT.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Jan 29, 2008
1 parent 48ef262 commit 526af35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static inline void local_r4k_flush_cache_page(void *args)
* If the page isn't marked valid, the page cannot possibly be
* in the cache.
*/
if (!(pte_val(*ptep) & _PAGE_PRESENT))
if (!(pte_present(*ptep)))
return;

if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID))
Expand Down

0 comments on commit 526af35

Please sign in to comment.