OSDN Git Service

MIPS: mm: Remove redundant get_new_mmu_context() cpu argument
authorPaul Burton <paul.burton@mips.com>
Sat, 2 Feb 2019 01:43:17 +0000 (01:43 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 4 Feb 2019 18:56:14 +0000 (10:56 -0800)
commit4739f7dd99d757fb719e1173b4d2bcfc0f93e52d
treec7a85575e022a360e968858ea3bb6db421630740
parent9a27324fde5d67cbadafff8f24ad65c49376f1f0
MIPS: mm: Remove redundant get_new_mmu_context() cpu argument

get_new_mmu_context() accepts a cpu argument, but implicitly assumes
that this is always equal to smp_processor_id() by operating on the
local CPU's TLB & icache.

Remove the cpu argument and have get_new_mmu_context() call
smp_processor_id() instead.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/include/asm/mmu_context.h
arch/mips/kvm/emulate.c
arch/mips/kvm/trap_emul.c
arch/mips/kvm/vz.c