powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 26 May 2018 04:27:41 +0000 (14:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:52 +0000 (07:51 +0200)
commit3bf1695bbb24a848f7b6258fb5e9725833d6ddc4
tree1e92720bf22c3b8404b5358cd5eadafa70d2b9d0
parentd71a3e0a2d0a9be5174fac1be0d97f67a16d8c8f
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