aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJames Clark <[email protected]>2024-01-29 15:40:38 +0000
committerSuzuki K Poulose <[email protected]>2024-02-12 10:21:38 +0000
commit4545b38ef004a586295750ea49a505b6396a7c90 (patch)
treeadc5f916fd11b75f8a17c4f8e137ca75660a95b5 /tools/perf/scripts/python/bin
parent1f5149c7751c50aba1a871143ffa6cb36af3fb49 (diff)
coresight: Remove atomic type from refcnt
Refcnt is only ever accessed from either inside the coresight_mutex, or the device's spinlock, making the atomic type and atomic_dec_return() calls confusing and unnecessary. The only point of synchronisation outside of these two types of locks is already done with a compare and swap on 'mode', which a comment has been added for. There was one instance of refcnt being used outside of a lock in TPIU, but that can easily be fixed by making it the same as all the other devices and adding a spinlock. Potentially in the future all the refcounting and locking can be moved up into the core code, and all the mostly duplicate code from the individual devices can be removed. Signed-off-by: James Clark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Suzuki K Poulose <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions