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)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:45:22 +0000 (15:45 -0600)
commit143e92c2248c24712e453aef2a43fbe164d37d37
tree3ae4e2b788d35670a1d2c7284988824aea65f15e
parentfeff85e807c07a11794da2ad4d5a4d8a0368dbfd
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>
(cherry picked from commit b5af0a26da84b75376706a92c7a58036a0bf3541)
drivers/hwtracing/coresight/coresight-etb10.c