powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 26 May 2018 04:27:31 +0000 (14:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:51 +0000 (07:51 +0200)
commitd744f8457f2f0cc8c019ccbcf1432ea96896cb8b
treed19919c592c507fd405bb108d94c31cd3350f3b6
parent5412a9d91d650ffbe8af17ffbf2f65f84fbd58e3
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