MIPS: mm: Remove redundant drop_mmu_context() cpu argument
authorPaul Burton <paul.burton@mips.com>
Sat, 2 Feb 2019 01:43:16 +0000 (01:43 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 4 Feb 2019 18:56:12 +0000 (10:56 -0800)
commit9a27324fde5d67cbadafff8f24ad65c49376f1f0
treeeeef2fe342ad98c293f8ffb0a8537349c1109603
parentc653bd04f76dd4435c09097a82adc2a5be672292
MIPS: mm: Remove redundant drop_mmu_context() cpu argument

The drop_mmu_context() function accepts a cpu argument, but it
implicitly expects that this is always equal to smp_processor_id() by
allocating & configuring an ASID on the local CPU when the mm is active
on the CPU indicated by the cpu argument.

All callers do provide the value of smp_processor_id() to the cpu
argument.

Remove the redundant argument and have drop_mmu_context() call
smp_processor_id() itself, making it clearer that the cpu variable
always represents the local CPU.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/include/asm/mmu_context.h
arch/mips/mm/c-r4k.c
arch/mips/mm/tlb-r3k.c
arch/mips/mm/tlb-r4k.c
arch/mips/mm/tlb-r8k.c