summaryrefslogtreecommitdiff
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorYeoreum Yun <yeoreum.yun@arm.com>2025-03-06 15:11:10 +0300
committerSuzuki K Poulose <suzuki.poulose@arm.com>2025-03-10 13:40:26 +0300
commitd11eb31db26912e6e3882a2d253e5a79374c412e (patch)
tree44e77260354e9228c49af1a63f75bc9cb2ae51ec /lib/timerqueue.c
parentdb11f75bc29c843a70d4af1921f05d50fc72f49b (diff)
downloadlinux-d11eb31db26912e6e3882a2d253e5a79374c412e.tar.xz
coresight/ultrasoc: change smb_drv_data spinlock's type to raw_spinlock_t
In ultrasoc-smb drivers, smb_drv_data->spinlock can be held during __schedule() by perf_event_task_sched_out()/in(). Since smb__drv_data->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 smb_drv_data->spinlock in ultrasoc-smb 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> 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-10-yeoreum.yun@arm.com
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions