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)
commit9b91a65230784a9ef644b8bdbb82a79ba4ae9456
tree3eea9295f4086b0435701f94a8f72d9b36eb4160
parentd818320ea200b02f2fea693b2be204f1990bb7e9
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