[MIPS] Use pte_present instead of open coded test for _PAGE_PRESENT.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
48ef2626ae
commit
526af35e5d
|
@ -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
|
* If the page isn't marked valid, the page cannot possibly be
|
||||||
* in the cache.
|
* in the cache.
|
||||||
*/
|
*/
|
||||||
if (!(pte_val(*ptep) & _PAGE_PRESENT))
|
if (!(pte_present(*ptep)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID))
|
if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID))
|
||||||
|
|
Loading…
Reference in New Issue