]> git.hungrycats.org Git - linux/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>
Mon, 24 Oct 2022 07:58:25 +0000 (09:58 +0200)
commitb737f60538abfeb343ac7ead216068f9fa3b087a
tree3719d96560c71f2913d76ee9b82a144b94bbc83c
parent78e83cfc64b55e706d1b050afe54c4fd0fe7d136
usb: gadget: uvc: increase worker prio to WQ_HIGHPRI

[ Upstream commit 9b91a65230784a9ef644b8bdbb82a79ba4ae9456 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.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