Skip to content

Commit

Permalink
sh: Use local TLB flush for get_mmu_context() ASID exhaustion.
Browse files Browse the repository at this point in the history
When get_mmu_context() runs out of new ASIDs it flushes the TLB and
wraps around. Despite the fact the ASIDs are tracked per-CPU, a global
TLB flush was being used. Switch this over to a local one, as matches
the intent.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Aug 20, 2009
1 parent c139a59 commit 711e522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu)
* We exhaust ASID of this version.
* Flush all TLB and start new cycle.
*/
flush_tlb_all();
local_flush_tlb_all();

#ifdef CONFIG_SUPERH64
/*
Expand Down

0 comments on commit 711e522

Please sign in to comment.