diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 11:14:55 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 11:14:55 +0100 |
commit | 526af35e5db81758da8488d381610ed9d1fba8f7 (patch) | |
tree | ea3eb3889061a051a3aa90b03f88fc8f59cbd51c /arch | |
parent | [MIPS] Put cast inside macro instead of all the callers (diff) | |
download | linux-526af35e5db81758da8488d381610ed9d1fba8f7.tar.xz linux-526af35e5db81758da8488d381610ed9d1fba8f7.zip |
[MIPS] Use pte_present instead of open coded test for _PAGE_PRESENT.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/c-r4k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 9355f1c9325f..d526899b037c 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)) |