]> git.ipfire.org Git - thirdparty/linux.git/commit
coresight: Drop atomics in connection refcounts
authorJames Clark <james.clark@linaro.org>
Thu, 28 Nov 2024 12:14:14 +0000 (12:14 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 11 Dec 2024 10:15:25 +0000 (10:15 +0000)
commit5aec7c065fba0c56d6c1ea5d629395210f174be8
treefbd8ff0eb9e4876ec495b591aebc9f9589db2312
parentc8ea5f41b4212fd6c76070bd9432f1bdec64f6b0
coresight: Drop atomics in connection refcounts

These belong to the device being enabled or disabled and are only ever
used inside the device's spinlock. Remove the atomics to not imply that
there are any other concurrent accesses.

If atomics were necessary I don't think they would have been enough
anyway. There would be nothing to prevent an enable or disable running
concurrently if not for the spinlock.

Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20241128121414.2425119-1-james.clark@linaro.org
drivers/hwtracing/coresight/coresight-funnel.c
drivers/hwtracing/coresight/coresight-replicator.c
drivers/hwtracing/coresight/coresight-tpda.c
include/linux/coresight.h