powerpc/mm: Avoid unnecessary test and reduce code size
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 21 Mar 2018 14:07:49 +0000 (15:07 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:15 +0000 (00:39 +1000)
commit48bdcace599b8e6241735a40fdb418a8471db089
tree5ce635639970c4dc0ef86d7225face67d311e442
parent8820a44738308a8a1644c6c3d04b477624db2d6b
powerpc/mm: Avoid unnecessary test and reduce code size

no_selective_tlbil hence the use of either steal_all_contexts()
or steal_context_up() depends on the subarch, it won't change
during run. Only the 8xx uses steal_all_contexts and CONFIG_PPC_8xx
is exclusive of other processors.

This patch replaces the test of no_selective_tlbil global var by
a test of CONFIG_PPC_8xx selection. It avoids the test and
removes unnecessary code.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/mmu_context_nohash.c