From: Ralf Baechle Date: Tue, 29 Jan 2008 10:14:55 +0000 (+0000) Subject: [MIPS] Use pte_present instead of open coded test for _PAGE_PRESENT. X-Git-Tag: v2.6.25-rc1~1163^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=526af35e5db81758da8488d381610ed9d1fba8f7;p=platform%2Fkernel%2Flinux-3.10.git [MIPS] Use pte_present instead of open coded test for _PAGE_PRESENT. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 9355f1c..d526899 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -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))