]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Report size of OPAL memcons log
authorJoel Stanley <joel@jms.id.au>
Fri, 13 Jan 2017 03:53:49 +0000 (14:23 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Jan 2017 02:33:55 +0000 (13:33 +1100)
commit4e2b7feb54914056455eb9e978812d4b10e1c5b9
tree3774df6ebd4a306fa11a35a6e3e8c9c850a650f1
parent449da3ceb1d947a5423fd429dc343e097e3726da
powerpc/powernv: Report size of OPAL memcons log

The OPAL memory console is reported to be size zero, as we do not
initialise the struct attr with any size information due to the size
being variable. This leads users to think that the console is empty.

Instead report the maximum size.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-msglog.c