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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Jan 2016 01:35:17 +0000 (12:35 +1100)
commitc88c5d43732a0356f99e5e4d1ad62ab1ea516b81
treebd70a2cb061347c113c4960e027bbbd40d69ba43
parent2f10f1a7884e97a68e52c4b6f7866e29cf3fe7e6
powerpc/powernv: Fix OPAL_CONSOLE_FLUSH prototype and usages

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>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-kmsg.c