diff options
author | Paul Burton <paul.burton@mips.com> | 2019-02-02 01:43:15 +0000 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-02-04 10:56:09 -0800 |
commit | c653bd04f76dd4435c09097a82adc2a5be672292 (patch) | |
tree | 76076acebd08f5fadcd3233748d35ccf87688957 /arch/mips/mm/tlb-r8k.c | |
parent | ce680c8c99fdcefd99ca845b256f9db2c6c3847d (diff) | |
download | linux-c653bd04f76dd4435c09097a82adc2a5be672292.tar.bz2 |
MIPS: mm: Define activate_mm() using switch_mm()
MIPS has separate definitions of activate_mm() & switch_mm() which are
identical apart from switch_mm() checking that the ASID is valid before
acquiring a new one.
We know that when activate_mm() is called cpu_context(X, mm) will be
zero, and this will never be considered a valid ASID because we never
allow the ASID version number to be zero, instead beginning with version
1 using asid_first_version(). Therefore switch_mm() will always allocate
a new ASID when called for a new task, meaning that it will behave
identically to activate_mm().
Take advantage of this to remove the duplication & define activate_mm()
using switch_mm() just like many other architectures do.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Diffstat (limited to 'arch/mips/mm/tlb-r8k.c')
0 files changed, 0 insertions, 0 deletions