diff options
| author | Yeoreum Yun <[email protected]> | 2025-03-06 12:11:08 +0000 |
|---|---|---|
| committer | Suzuki K Poulose <[email protected]> | 2025-03-10 10:40:26 +0000 |
| commit | 982d0a0e08db46865cfbb901444b192c528fc741 (patch) | |
| tree | 9c3330c1358a81daba9cd2c7d8f31f952e326256 /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | coresight-funnel: change funnel_drvdata spinlock's type to raw_spinlock_t (diff) | |
| download | kernel-982d0a0e08db46865cfbb901444b192c528fc741.tar.gz kernel-982d0a0e08db46865cfbb901444b192c528fc741.zip | |
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 <[email protected]>
Reviewed-by: Mike Leach <[email protected]>
Signed-off-by: Yeoreum Yun <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
