coresight: tmc: keep track of memory width
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:57 +0000 (11:33 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:46:40 +0000 (15:46 -0600)
commit807aa8f320d493a3eb62226d48f1dec6bccce703
treed6721cba4dd0fc63c70d14a61cbb8c02f48997a4
parent6b21a3edf2e21fb3267efe6d1a67e68f8e73b14e
coresight: tmc: keep track of memory width

Accessing the HW configuration register each time the memory
width is needed simply doesn't make sense.  It is much more
efficient to read the value once and keep a reference for
later use.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4f1ff3de925d741b0b77c59bc1387cb940ad7c73)
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tmc.h