diff options
| author | Yeoreum Yun <[email protected]> | 2025-03-06 12:11:09 +0000 |
|---|---|---|
| committer | Suzuki K Poulose <[email protected]> | 2025-03-10 10:40:26 +0000 |
| commit | db11f75bc29c843a70d4af1921f05d50fc72f49b (patch) | |
| tree | 28a638d83abcc78fd1370998f9e9c710c59f6898 /drivers/pci/controller/dwc | |
| parent | coresight-replicator: change replicator_drvdata spinlock's type to raw_spinlo... (diff) | |
| download | kernel-db11f75bc29c843a70d4af1921f05d50fc72f49b.tar.gz kernel-db11f75bc29c843a70d4af1921f05d50fc72f49b.zip | |
coresight-tmc: change tmc_drvdata spinlock's type to raw_spinlock_t
In coresight-tmc drivers, tmc_drvdata->spinlock can be held
during __schedule() by perf_event_task_sched_out()/in().
Since tmc_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 tmc_drvdata->spinlock in coresight-tmc 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')
0 files changed, 0 insertions, 0 deletions
