]> asedeno.scripts.mit.edu Git - linux.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)
commit9e4f02e24e106449a5efc964b74a195edb230a57
tree7b5f7f042abbb7149201b886e2de0d1648e2dc6c
parent48bdcace599b8e6241735a40fdb418a8471db089
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