]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: constify LAST_CONTEXT in mmu_context_nohash
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 21 Mar 2018 14:07:51 +0000 (15:07 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:16 +0000 (00:39 +1000)
commitd43803c7b64053418859669f3c6587b93567e670
tree7b5f7f042abbb7149201b886e2de0d1648e2dc6c
parent6406e66c96bbc18f772ec5050f5c634db856b9de
powerpc/mm: constify LAST_CONTEXT in mmu_context_nohash

last_context is 16 on the 8xx, 65535 on the 47x and 255 on other ones.

The kernel is exclusively built for the 8xx, for the 47x or for
another processor so the last context can be defined as a constant
depending on the processor.

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