powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Mar 2018 22:40:38 +0000 (19:40 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 08:25:11 +0000 (19:25 +1100)
commit1e2a9fc7496955faacbbed49461d611b704a7505
tree72c09f6a6615437427afb9ec47d518bc25104214
parentac96588d9831bd047ab4cf54850cc69b44855337
powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code

rfi_flush_enable() includes a check to see if we're already
enabled (or disabled), and in that case does nothing.

But that means calling setup_rfi_flush() a 2nd time doesn't actually
work, which is a bit confusing.

Move that check into the debugfs code, where it really belongs.

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/kernel/setup_64.c