summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2021-01-10 20:28:55 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-12 12:52:28 +0100
commit8653d71ce3763aedcf3d2331f59beda3fecd79e4 (patch)
treec7b041caeb00e3466c430d4280247148cc8b3812 /tools/perf/scripts/python
parent0c0a20f6da04780b94e3ccc43101dde6f536ab37 (diff)
downloadkernel-8653d71ce3763aedcf3d2331f59beda3fecd79e4.tar.gz
usb/gadget: f_midi: Replace tasklet with work
Currently a tasklet is used to transmit input substream buffer data. However, tasklets have long been deprecated as being too heavy on the system by running in irq context - and this is not a performance critical path. If a higher priority process wants to run, it must wait for the tasklet to finish before doing so. Deferring work to a workqueue and executing in process context should be fine considering the callback already does f_midi_do_transmit() under the transmit_lock and thus changes in semantics are ok regarding concurrency - tasklets being serialized against itself. Cc: Takashi Iwai <tiwai@suse.de> Reviewed-by: Takashi Iwai <tiwai@suse.de> Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Link: https://lore.kernel.org/r/20210111042855.73289-1-dave@stgolabs.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions