coresight: tmc: keep track of memory width
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:57 +0000 (11:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 May 2016 21:59:30 +0000 (14:59 -0700)
commit4f1ff3de925d741b0b77c59bc1387cb940ad7c73
treed3e2d92f460276c89ce5136091baf78d0cbfd44b
parentb217601e9adce4d2dccc95a9e6814bdbf5a4a815
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>
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tmc.h