diff options
author | 2025-03-06 12:11:04 +0000 | |
---|---|---|
committer | 2025-03-10 10:40:25 +0000 | |
commit | 4cf364ca57d851e192ce02e98d314d22fa514895 (patch) | |
tree | af36b2860e7a4b8c6a838d30f8c9828561101dcf /include/linux/coresight.h | |
parent | coresight-etm4x: change etmv4_drvdata spinlock type to raw_spinlock_t (diff) | |
download | wireguard-linux-4cf364ca57d851e192ce02e98d314d22fa514895.tar.xz wireguard-linux-4cf364ca57d851e192ce02e98d314d22fa514895.zip |
coresight: change coresight_trace_id_map's lock type to raw_spinlock_t
coresight_trace_id_map->lock can be acquired while coresight devices'
drvdata_lock.
But the drvdata_lock can be raw_spinlock_t (i.e) coresight-etm4x.
To address this, change type of coresight_trace_id_map->lock to
raw_spinlock_t
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250306121110.1647948-4-yeoreum.yun@arm.com
Diffstat (limited to 'include/linux/coresight.h')
-rw-r--r-- | include/linux/coresight.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h index 4541bfc1cc6b..d79a242b271d 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -239,7 +239,7 @@ struct coresight_trace_id_map { DECLARE_BITMAP(used_ids, CORESIGHT_TRACE_IDS_MAX); atomic_t __percpu *cpu_map; atomic_t perf_cs_etm_session_active; - spinlock_t lock; + raw_spinlock_t lock; }; /** |