powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 2 Jun 2018 11:08:50 +0000 (21:08 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jun 2018 14:44:35 +0000 (16:44 +0200)
commit5e9ea71d85bc33f869b4d8c9b5142ac30baa9118
treec6026fa34dab16fa3717041f8ec6e8173396e987
parenta1bbe5eb6c01fa47ab7fb2688183fd11ebc3e2bb
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