summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-11-02 04:49:25 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-02 04:49:25 +0300
commit4dee060625e1095c7065fead542e96ba9504c7eb (patch)
treeb7fde2e7ee714d769bb5e4f957ab9eea0e8ed5fe /include
parent73d21a3579818aa0e39de207474a39ca35c7d8cb (diff)
parent97b31c1f8eb865bc3aa5f4a08286a6406d782ea8 (diff)
downloadlinux-4dee060625e1095c7065fead542e96ba9504c7eb.tar.xz
Merge tag 'leds-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds
Pull LED updates from Pavel Machek: "Johannes pointed out that locking is still problematic with triggers list, attempt to solve that by using RCU" * tag 'leds-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds: leds: trigger: Disable CPU trigger on PREEMPT_RT leds: trigger: use RCU to protect the led_cdevs list led-class-flash: fix -Wrestrict warning
Diffstat (limited to 'include')
-rw-r--r--include/linux/leds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index a0b730be40ad..ba4861ec73d3 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -360,7 +360,7 @@ struct led_trigger {
struct led_hw_trigger_type *trigger_type;
/* LEDs under control by this trigger (for simple triggers) */
- rwlock_t leddev_list_lock;
+ spinlock_t leddev_list_lock;
struct list_head led_cdevs;
/* Link to next registered trigger */