]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/nohash: Remove CONFIG_SMP #ifdefery in mmu_context.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 3 Jun 2021 09:29:04 +0000 (09:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:09 +0000 (00:09 +1000)
commita9c50fefe21594a1ae3cc67a9389efb76d191c56
tree8c33e45566e7e9b2f4e11b79aa9b94ba0aecf995
parentbdd762e1bc36bd22f226cd85859362e631b9d55e
powerpc/nohash: Remove CONFIG_SMP #ifdefery in mmu_context.h

Everything can be done even when CONFIG_SMP is not selected.

Just use IS_ENABLED() where relevant and rely on GCC to
opt out unneeded code and variables when CONFIG_SMP is not set.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cc13b87b0f750a538621876ecc24c22a07e7c8be.1622712515.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/nohash/mmu_context.c