powerpc/64s: Allow control of RFI flush via debugfs
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 Jan 2018 11:17:18 +0000 (22:17 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Feb 2018 19:12:17 +0000 (11:12 -0800)
commitd6eded6c94530cb2f359f1fbffcb5f92ee0fa8b2
tree59eb870f67850ff0264c4ae983888f8fae81be63
parent517bdccc3af650316046801fdcd828d7b6aa42ba
powerpc/64s: Allow control of RFI flush via debugfs

commit 236003e6b5443c45c18e613d2b0d776a9f87540e upstream.

Expose the state of the RFI flush (enabled/disabled) via debugfs, and
allow it to be enabled/disabled at runtime.

eg: $ cat /sys/kernel/debug/powerpc/rfi_flush
    1
    $ echo 0 > /sys/kernel/debug/powerpc/rfi_flush
    $ cat /sys/kernel/debug/powerpc/rfi_flush
    0

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/setup_64.c