提交 526af35e 编写于 作者: R Ralf Baechle

[MIPS] Use pte_present instead of open coded test for _PAGE_PRESENT.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 48ef2626
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册