From: Paul Mundt Date: Thu, 20 Aug 2009 08:24:40 +0000 (+0900) Subject: sh: Use local TLB flush for get_mmu_context() ASID exhaustion. X-Git-Tag: firefly_0821_release~12920^2~40 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=711e522d70f760969de7bcc97907b467993614dc;p=firefly-linux-kernel-4.4.55.git sh: Use local TLB flush for get_mmu_context() ASID exhaustion. 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 --- diff --git a/arch/sh/include/asm/mmu_context.h b/arch/sh/include/asm/mmu_context.h index 67d8946db193..41080b173a7a 100644 --- a/arch/sh/include/asm/mmu_context.h +++ b/arch/sh/include/asm/mmu_context.h @@ -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 /*