diff options
author | Paul Burton <paul.burton@mips.com> | 2019-02-02 02:43:18 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-02-04 19:56:16 +0100 |
commit | 67741ba3ba006558ac3541488c1db9dff9507e73 (patch) | |
tree | 3d87bc5f940917954b8a1777222beba16b0ce860 /arch/mips/mm/c-r4k.c | |
parent | MIPS: mm: Remove redundant get_new_mmu_context() cpu argument (diff) | |
download | linux-67741ba3ba006558ac3541488c1db9dff9507e73.tar.xz linux-67741ba3ba006558ac3541488c1db9dff9507e73.zip |
MIPS: mm: Avoid HTW stop/start when dropping an inactive mm
If drop_mmu_context() is called with an mm that is not currently active
on the local CPU then there's no need for us to stop & start a hardware
page table walker because it can't be fetching entries for the ASID
corresponding to the mm we're operating on.
Move the htw_stop() & htw_start() calls into the block which we run only
if the mm is currently active, in order to avoid the redundant work.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Diffstat (limited to 'arch/mips/mm/c-r4k.c')
0 files changed, 0 insertions, 0 deletions