powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()
commit10f8cd737a032c4862788f5c77882a3f5e76a266
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Apr 2019 14:20:01 +0000 (22 00:20 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:44:46 +0000 (16 19:44 +0200)
tree5f0ab054571f06fa22b964f8b238ecc5463c857b
parent495c34251785108186368ede50385cb1f281d946
powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()

commit 37c0bdd00d3ae83369ab60a6712c28e11e6458d5 upstream.

Now that we have the security flags we can significantly simplify the
code in pnv_setup_rfi_flush(), because we can use the flags instead of
checking device tree properties and because the security flags have
pessimistic defaults.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/setup.c