coresight: adding path for STM device
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:38 +0000 (11:33 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:45:20 +0000 (15:45 -0600)
commit27e5d1a7ac405242327797a69dfc82235d86d513
tree680ecb562bf48208a68aab66f6ce6c82918cb68a
parentb1ffdd7ebb35dbd535cb37476b4819ab45c57e4e
coresight: adding path for STM device

>From a core framework point of view an STM device is a source that is
treated the same way as any other tracers.  Unlike tracers though STM
devices are not associated with a CPU.  As such it doesn't make sense
to associate the path from an STM device to its sink with a per-cpu
variable as it is done for tracers.

This patch simply adds another global variable to keep STM paths and the
processing in coresight_enable/disable() is updated to deal with STM
devices properly.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a685d68328f14579b2e68d6a3a2066089cffbf98)
drivers/hwtracing/coresight/coresight.c