]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/powernv: opal-kmsg use flush fallback from console code
authorNicholas Piggin <npiggin@gmail.com>
Mon, 30 Apr 2018 14:55:47 +0000 (00:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 12:09:56 +0000 (22:09 +1000)
commite00da0f2db91b90e990cc05088f03adbc58af895
treeeae92e5e5859905c270321b3962abb26a5c3e4c3
parent3a80bfc7ea96d253be0e7d869c059b1976c19809
powerpc/powernv: opal-kmsg use flush fallback from console code

Use the more refined and tested event polling loop from opal_put_chars
as the fallback console flush in the opal-kmsg path. This loop is used
by the console driver today, whereas the opal-kmsg fallback is not
likely to have been used for years.

Use WARN_ONCE rather than a printk when the fallback is invoked to
prepare for moving the console flush into a common function.

Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-kmsg.c