coresight: etb10: fixing the right amount of words to read
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:41 +0000 (11:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 May 2016 21:59:30 +0000 (14:59 -0700)
commitb5af0a26da84b75376706a92c7a58036a0bf3541
tree523a0b589980c66d2159c6ea567de1e02e1a5877
parent237483aa5cf43105d148d3f03b29eed47c3e6cf9
coresight: etb10: fixing the right amount of words to read

This patch rectifies the amount of words to read when the internal
buffer is deemed bigger than the amount of space available in the
perf ring buffer.

The amount to read is set to the amount of space in the perf ring
buffer rather than being subtracted by it.

Reported-by: Suzuki K Poulose <Suzuki.Poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etb10.c