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

Commit 0072032d authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Switch to local TLB flush variants in additional callsites.



Convert some of the global flush users over to using the local variants
that don't need to use the global routines.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent ea9af694
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
			saved_asid = get_asid();
			set_asid(asid);
		}
		flush_tlb_one(asid, page);
		local_flush_tlb_one(asid, page);
		if (saved_asid != MMU_NO_ASID)
			set_asid(saved_asid);
		local_irq_restore(flags);
@@ -67,7 +67,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
				set_asid(asid);
			}
			while (start < end) {
				flush_tlb_one(asid, start);
				local_flush_tlb_one(asid, start);
				start += PAGE_SIZE;
			}
			if (saved_asid != MMU_NO_ASID)
@@ -97,7 +97,7 @@ void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
		end &= PAGE_MASK;
		set_asid(asid);
		while (start < end) {
			flush_tlb_one(asid, start);
			local_flush_tlb_one(asid, start);
			start += PAGE_SIZE;
		}
		set_asid(saved_asid);