[PATCH] clocksource/drivers/samsung_pwm: switch to raw_spinlock_t type
Sebastian Andrzej Siewior
bigeasy at linutronix.de
Mon Jul 13 03:31:07 PDT 2026
On 2026-07-13 10:56:53 [+0200], Marek Szyprowski wrote:
> Samsung PWM timer might be used as a clock source on some legacy systems.
> When PREEMPT_RT is enabled on ARM, regular spinlock is converted to a
> sleeping lock (mutex-based), which must not be used in atomic context
> such as hard interrupt handlers. Switch the samsung_pwm_lock to the
> raw_spinlock, which remains a true non-sleeping spinlock even
> under PREEMPT_RT.
>
> Fixes: 7aac482e6290 ("clocksource: samsung_pwm_timer: Make PWM spinlock global")
> Fixes: f11899894c0a ("clocksource: add samsung pwm timer driver")
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
Sebastian
More information about the linux-arm-kernel
mailing list