aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2017-01-19 11:13:37 -0800
committerDmitry Torokhov <[email protected]>2017-01-22 00:23:19 -0800
commite9728f0dd7dc06fb0f0d18552ab9599005cd2ab7 (patch)
treefbbf52c9d3f453c52124a01ff93167d589f5f7a9 /tools/perf/util/trace-event-scripting.c
parent48a55d7de79f95176f3ab372be66165a60be222f (diff)
Input: pwm-beeper - fix race when suspending
Usually userspace sends SND_BELL and SND_TONE events, and by the time pwm_beeper_suspend() runs userpsace is already frozen, but theoretically in-kernel users may send these events too, and that may cause pwm_beeper_event() scheduling another work after we canceled it. Let's introduce a "suspended" flag and check it in pwm_beeper_event() to avoid this race. Reviewed-by: Thierry Reding <[email protected]> Tested-by: David Lechner <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions