coresight-tpdm: Optimize the store function of tpdm simple dataset
authorTao Zhang <quic_taozha@quicinc.com>
Sun, 4 Feb 2024 05:30:32 +0000 (13:30 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 12 Feb 2024 10:29:46 +0000 (10:29 +0000)
commit9f0ea8e8344b8549af404f2f1ddb25e22d6b09e1
treede9574d7ca26c7a7954940d10b6236a3d003e2e3
parentbcaabb95f0c9883fb8e1112bd13eaba9cfd62c15
coresight-tpdm: Optimize the store function of tpdm simple dataset

Replace spin lock/unlock to avoid forgetting to unlock when the
function exits. And refine methods for handling various conditions.

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-2-git-send-email-quic_taozha@quicinc.com
drivers/hwtracing/coresight/coresight-tpdm.c