parisc: Optimize switch_mm
authorJohn David Anglin <dave.anglin@bell.net>
Wed, 26 Jul 2017 18:02:52 +0000 (20:02 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 22 Aug 2017 14:34:34 +0000 (16:34 +0200)
commitd2883fa1a6fcb065362f27f410114dc6b7084655
tree3e3dbbd561e3e6c83ae44db747f84ae74e0435a4
parent42593e70004d13baf9f1587aed13911cac01cfd9
parisc: Optimize switch_mm

We only need to switch contexts when prev != next, and we don't need to
disable interrupts to do the check.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/mmu_context.h