coresight: implementing 'cpu_id()' API
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 2 Feb 2016 21:14:01 +0000 (14:14 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:30:09 +0000 (15:30 -0600)
commit8a403a74c16625044c3bc83ae76791e562952727
treea4ee2188ac8b54596f6d3213150e554010ab64af
parentb24ef072a99aeb7aeab9ced2a207c6a4af364d52
coresight: implementing 'cpu_id()' API

Other than plainly parsing the device tree there is no way to
know which CPU a tracer is affined to.  As such adding an
interface to lookup the CPU field enclosed in the etm_drvdata
structure that was initialised at boot time.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 52210c8745e418f82f3f0aeeee01d7bc4858812a)
drivers/hwtracing/coresight/coresight-etm3x.c
drivers/hwtracing/coresight/coresight-etm4x.c
include/linux/coresight.h