powerpc/64: Call setup_barrier_nospec() from setup_arch()
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 27 Jul 2018 23:06:35 +0000 (09:06 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 14:32:23 +0000 (00:32 +1000)
commitaf375eefbfb27cbb5b831984e66d724a40d26b5c
treeeed13554eb3d6652a1e47422190ac8772b38d071
parent179ab1cbf883575c3a585bcfc0f2160f1d22a149
powerpc/64: Call setup_barrier_nospec() from setup_arch()

Currently we require platform code to call setup_barrier_nospec(). But
if we add an empty definition for the !CONFIG_PPC_BARRIER_NOSPEC case
then we can call it in setup_arch().

Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/setup-common.c
arch/powerpc/platforms/powernv/setup.c
arch/powerpc/platforms/pseries/setup.c