coresight: tmc: make sysFS and Perf mode mutually exclusive
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:56 +0000 (11:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 May 2016 21:59:30 +0000 (14:59 -0700)
commitb217601e9adce4d2dccc95a9e6814bdbf5a4a815
treea6c1cd5a50bfd30848084c5773f243dd473a162b
parenta40318fb01e98e72175bd9891208541148633d42
coresight: tmc: make sysFS and Perf mode mutually exclusive

The sysFS and Perf access methods can't be allowed to interfere
with one another.  As such introducing guards to access
functions that prevents moving forward if a TMC is already
being used.

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-etr.c