Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 526af35e authored by Ralf Baechle's avatar Ralf Baechle
Browse files

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

parent 48ef2626
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))