coresight: tmc: adding mode of operation for link/sinks
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:54 +0000 (11:33 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:46:38 +0000 (15:46 -0600)
commitcc878b6f43fbac6be550554870f053d20a77da73
tree06bd1d342946029c876bfb1bccdc3b0e3c7ad797
parent09c5cf1702bf498bd5d30e94eda0d855dbb301df
coresight: tmc: adding mode of operation for link/sinks

Moving tmc_drvdata::enable to a local_t mode.  That way the
sink interface is aware of it's orgin and the foundation for
mutual exclusion between the sysFS and Perf interface can be
laid out.

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 f2facc3366d77e78dbc8bf865f1e4a6227a7f0e5)
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc-etr.c
drivers/hwtracing/coresight/coresight-tmc.h