mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
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:7aac482e62("clocksource: samsung_pwm_timer: Make PWM spinlock global") Fixes:f11899894c("clocksource: add samsung pwm timer driver") Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Sebastian Andrzej Siewior <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Link: https://patch.msgid.link/[email protected]