Skip to content

Commit 97b31c1

Browse files
Sebastian Andrzej Siewiorpavelmachek
authored andcommitted
leds: trigger: Disable CPU trigger on PREEMPT_RT
The CPU trigger is invoked on ARM from CPU-idle. That trigger later invokes led_trigger_event() which may invoke the callback of the actual driver. That driver can acquire a spinlock_t which is okay on kernel without PREEMPT_RT. On a PREEMPT_RT enabled kernel this lock is turned into a sleeping lock and must not be acquired with disabled interrupts. Disable the CPU trigger on PREEMPT_RT. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Pavel Machek <[email protected]>
1 parent 2a5a8fa commit 97b31c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/leds/trigger/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ config LEDS_TRIGGER_BACKLIGHT
6464

6565
config LEDS_TRIGGER_CPU
6666
bool "LED CPU Trigger"
67+
depends on !PREEMPT_RT
6768
help
6869
This allows LEDs to be controlled by active CPUs. This shows
6970
the active CPUs across an array of LEDs so you can see which

0 commit comments

Comments
 (0)