]> 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)
commit181c6ea55dc593a60c89e616c2aa54d9b3caf29b
tree7b5f7f042abbb7149201b886e2de0d1648e2dc6c
parent661c975cbf00562e68ea2de9cee4584885b32ada
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