powerpc/powernv/opal-msglog: Refactor memcons code
authorClaudio Carvalho <cclaudio@linux.ibm.com>
Wed, 28 Aug 2019 13:05:20 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Aug 2019 23:40:16 +0000 (09:40 +1000)
commitdea45ea7775240047f70e2631e468f6b65d09493
tree1a2441ad28ad1989a9766463dac6d8b7c783105e
parent6c85b7bc637b64e681760f62c0eafba2f56745c6
powerpc/powernv/opal-msglog: Refactor memcons code

This patch refactors the code in opal-msglog that operates on the OPAL
memory console in order to make it cleaner and also allow the reuse of
the new memcons_* functions.

Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190828130521.26764-1-mpe@ellerman.id.au
arch/powerpc/platforms/powernv/opal-msglog.c