aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorKai-Heng Feng <[email protected]>2020-07-02 13:45:00 +0800
committerPavel Machek <[email protected]>2020-07-12 10:10:37 +0200
commit302a085c20194bfa7df52e0fe684ee0c41da02e6 (patch)
treed408d8ae7b85843fc4150f01fa3f68c393dcd61f /tools/perf/util/scripting-engines/trace-event-python.c
parent5ad79c20b6d28467db643ac107bbdaa01aa93a23 (diff)
leds: core: Flush scheduled work for system suspend
Sometimes LED won't be turned off by LED_CORE_SUSPENDRESUME flag upon system suspend. led_set_brightness_nopm() uses schedule_work() to set LED brightness. However, there's no guarantee that the scheduled work gets executed because no one flushes the work. So flush the scheduled work to make sure LED gets turned off. Signed-off-by: Kai-Heng Feng <[email protected]> Acked-by: Jacek Anaszewski <[email protected]> Fixes: 81fe8e5b73e3 ("leds: core: Add led_set_brightness_nosleep{nopm} functions") Signed-off-by: Pavel Machek <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions