]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: increase worker prio to WQ_HIGHPRI
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 7 Sep 2022 21:58:18 +0000 (23:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:30:18 +0000 (09:30 +0200)
commit904c89f13e7977d821c47def59ec690e0d49c522
tree3eea9295f4086b0435701f94a8f72d9b36eb4160
parent72e4f30edf91b8a1810849f290c617c65721e121
usb: gadget: uvc: increase worker prio to WQ_HIGHPRI

This patch is changing the simple workqueue in the gadget driver to be
allocated as async_wq with a higher priority. The pump worker, that is
filling the usb requests, will have a higher priority and will not be
scheduled away so often while the video stream is handled. This will
lead to fewer streaming underruns.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220907215818.2670097-1-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uvc.c
drivers/usb/gadget/function/uvc.h
drivers/usb/gadget/function/uvc_v4l2.c
drivers/usb/gadget/function/uvc_video.c