diff options
author | Yeoreum Yun <yeoreum.yun@arm.com> | 2025-03-06 15:11:08 +0300 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2025-03-10 13:40:26 +0300 |
commit | 982d0a0e08db46865cfbb901444b192c528fc741 (patch) | |
tree | 9c3330c1358a81daba9cd2c7d8f31f952e326256 /tools/perf/scripts/python/parallel-perf.py | |
parent | 56eb02f0b04fce3b5c4e3224b659e342cc7a8c56 (diff) | |
download | linux-982d0a0e08db46865cfbb901444b192c528fc741.tar.xz |
coresight-replicator: change replicator_drvdata spinlock's type to raw_spinlock_t
In coresight-replicator drivers, replicator_drvdata->spinlock can be held
during __schedule() by perf_event_task_sched_out()/in().
Since replicator_drvdata->spinlock type is spinlock_t and
perf_event_task_sched_out()/in() is called after acquiring rq_lock,
which is raw_spinlock_t (an unsleepable lock),
this poses an issue in PREEMPT_RT kernel where spinlock_t is sleepable.
To address this, change type replicator_drvdata->spinlock in
coresight-replicator drivers, which can be called
by perf_event_task_sched_out()/in(), from spinlock_t to raw_spinlock_t.
Reviewed-by: James Clark <james.clark@linaro.org>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250306121110.1647948-8-yeoreum.yun@arm.com
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions