summaryrefslogtreecommitdiff
path: root/include/linux/processor.h
diff options
context:
space:
mode:
authorCraig McQueen <craig@mcqueen.au>2026-04-23 14:36:38 +0300
committerLee Jones <lee@kernel.org>2026-06-17 13:29:05 +0300
commitf92135f100669b508dd62b424ab20bcb33494c79 (patch)
treea71098deb0df6087c2c28593f26c307fdd484d3a /include/linux/processor.h
parent6ebff754c46e2277c831670fa1f0b5043250eb77 (diff)
downloadlinux-f92135f100669b508dd62b424ab20bcb33494c79.tar.xz
leds: core: Fix race condition for software blink
led_set_brightness() function: Change handling of software blink to avoid race conditions when stopping blink and setting brightness. Triggers may call led_set_brightness(LED_OFF), led_set_brightness(LED_FULL) in quick succession to disable blinking and turn the LED on. If the delayed work task has not yet disabled blinking by the time the second call occurs, then the brightness also needs to be changed in the delayed work task. Signed-off-by: Craig McQueen <craig@mcqueen.au> Link: https://patch.msgid.link/20260423113638.2079302-1-craig@mcqueen.au Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/processor.h')
0 files changed, 0 insertions, 0 deletions