powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again
commit22c697163e4d23513133da617c86d4c71ff5bff6
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Apr 2019 14:19:51 +0000 (22 00:19 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:44:45 +0000 (16 19:44 +0200)
treed5518b88bf8ba5cd718754a604723757b3d58bac
parentd04664376129b34dab6607f5cec04748e51e9643
powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again

commit abf110f3e1cea40f5ea15e85f5d67c39c14568a7 upstream.

For PowerVM migration we want to be able to call setup_rfi_flush()
again after we've migrated the partition.

To support that we need to check that we're not trying to allocate the
fallback flush area after memblock has gone away (i.e., boot-time only).

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/setup_64.c