powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Mar 2018 22:40:39 +0000 (19:40 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 08:25:12 +0000 (19:25 +1100)
commitabf110f3e1cea40f5ea15e85f5d67c39c14568a7
treead33fae93b2b5195a1c09a8e7258e4ea68a7efc9
parent1e2a9fc7496955faacbbed49461d611b704a7505
powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again

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>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/setup_64.c