aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-06-13 17:24:51 +0200
committerLee Jones <[email protected]>2024-06-26 16:56:07 +0100
commitab477b766edd3bfb6321a6e3df4c790612613fae (patch)
treec03855177ca31ec1d0e491c0448173035d636b9e /drivers/gpu/drm/amd/amdgpu/atom.c
parent25458b2a4070c339d11af78dbecff3e845e6ad04 (diff)
leds: triggers: Flush pending brightness before activating trigger
The race fixed in timer_trig_activate() between a blocking set_brightness() call and trigger->activate() can affect any trigger. So move the call to flush_work() into led_trigger_set() where it can avoid the race for all triggers. Fixes: 0db37915d912 ("leds: avoid races with workqueue") Fixes: 8c0f693c6eff ("leds: avoid flush_work in atomic context") Cc: [email protected] Tested-by: Dustin L. Howett <[email protected]> Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions