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

Commit 997d0030 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Use local TLB flush in set_pte_phys().



set_pte_phys() presently uses the global flush_tlb_one(), which locks on
SMP trying to do the IPI. As we have not even initialized the other CPUs
at this point, switch to the local_ variant so the flush happens on the
boot CPU.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 2e046b94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ static void set_pte_phys(unsigned long addr, unsigned long phys, pgprot_t prot)
	}

	set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, prot));
	flush_tlb_one(get_asid(), addr);
	local_flush_tlb_one(get_asid(), addr);
}

/*