coresight-tpdm: Optimize the useage of tpdm_has_dsb_dataset
authorTao Zhang <quic_taozha@quicinc.com>
Sun, 4 Feb 2024 05:30:33 +0000 (13:30 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 12 Feb 2024 10:29:46 +0000 (10:29 +0000)
commitf021801c418e7a81455a410a5b195961349d8e93
treecacde664805e60c1e7768aeefef2351c8831e2a7
parent9f0ea8e8344b8549af404f2f1ddb25e22d6b09e1
coresight-tpdm: Optimize the useage of tpdm_has_dsb_dataset

Since the function tpdm_has_dsb_dataset will be called by TPDA
driver in subsequent patches, it is moved to the header file.
And move this judgement form the function __tpdm_{enable/disable}
to the beginning of the function tpdm_{enable/disable}_dsb.

Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/1707024641-22460-3-git-send-email-quic_taozha@quicinc.com
drivers/hwtracing/coresight/coresight-tpdm.c
drivers/hwtracing/coresight/coresight-tpdm.h