coresight: etb10: Splitting function etb_enable()
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 20 Sep 2018 19:17:59 +0000 (13:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:09:18 +0000 (20:09 +0200)
commitd4989fe88603367e5998af70ee638ae6790d42d1
tree4381ba6a277d83fd5bdd519c7ea68e6575f16402
parentd43b8ec599f90c1f07b1bdd29b0c4b6306726ef2
coresight: etb10: Splitting function etb_enable()

Up until now the relative simplicity of enabling the ETB made it
possible to accommodate processing for both sysFS and perf methods.
But work on claimtags and CPU-wide trace scenarios is adding some
complexity, making the current code messy and hard to maintain.

As such follow what has been done for ETF and ETR components and split
function etb_enable() so that processing for both API can be done
cleanly.

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