powerpc/init: Do not advertise radix during client-architecture-support
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 9 Jan 2018 05:45:20 +0000 (16:45 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:44:55 +0000 (23:44 +1100)
commit79b4686857029cdea97d0102d179aef2f58e5acb
treec78ee3de344bfa3df8e72cb3e0543ee921144c38
parentbde709a70884bfc790da6fbc4467c91e8d41c51b
powerpc/init: Do not advertise radix during client-architecture-support

Currently the pseries kernel advertises radix MMU support even if
the actual support is disabled via the CONFIG_PPC_RADIX_MMU option.

This adds a check for CONFIG_PPC_RADIX_MMU to avoid advertising radix
to the hypervisor.

Suggested-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c