diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-02-19 14:33:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-10 09:27:56 +0100 |
commit | ba8a86e4dadb332c41454f02e27d28321e0f03d5 (patch) | |
tree | 84378a70da6eb1f69a2cec462d90166651538bc1 /drivers/leds/TODO | |
parent | 1487e7bae809d73461940a6ef8c1ffc7c4faa0d3 (diff) | |
download | linux-ba8a86e4dadb332c41454f02e27d28321e0f03d5.tar.bz2 |
leds: trigger/tty: Use led_set_brightness_sync() from workqueue
led_set_brightness() involves scheduling a workqueue. As here the led's
brightness setting is done in context of the trigger's workqueue this is
unjustified overhead and it's more sensible to use
led_set_brightness_sync().
Fixes: fd4a641ac88f ("leds: trigger: implement a tty trigger")
Reported-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210219133307.4840-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/leds/TODO')
0 files changed, 0 insertions, 0 deletions