powerpc/powernv: Fix OPAL_CONSOLE_FLUSH prototype and usages
authorRussell Currey <ruscur@russell.cc>
Wed, 13 Jan 2016 01:04:32 +0000 (12:04 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2016 15:43:01 +0000 (08:43 -0700)
commit6175c8fd13cd61d7a17868aed1c332e6e7a855ea
treed085b12ea838b98855d1073f6777c789b76961a8
parentb2cd42d38981cd6d43cf3332017c768a212fb65c
powerpc/powernv: Fix OPAL_CONSOLE_FLUSH prototype and usages

commit c88c5d43732a0356f99e5e4d1ad62ab1ea516b81 upstream.

The recently added OPAL API call, OPAL_CONSOLE_FLUSH, originally took no
parameters and returned nothing.  The call was updated to accept the
terminal number to flush, and returned various values depending on the
state of the output buffer.

The prototype has been updated and its usage in the OPAL kmsg dumper has
been modified to support its new behaviour as an incremental flush.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-kmsg.c