diff options
author | 2025-02-26 19:00:05 +0000 | |
---|---|---|
committer | 2025-02-28 21:36:45 +0000 | |
commit | 22af2fac88fa5dbc310bfe7d0b66d4de3ac47305 (patch) | |
tree | 49bd5a826a11fb7d9dc1130e0aa63699e52c2f33 | |
parent | soc: apple: rtkit: Implement OSLog buffers properly (diff) | |
download | wireguard-linux-22af2fac88fa5dbc310bfe7d0b66d4de3ac47305.tar.xz wireguard-linux-22af2fac88fa5dbc310bfe7d0b66d4de3ac47305.zip |
soc: apple: rtkit: Use high prio work queue
rtkit messages as communication with the DCP firmware for framebuffer
swaps or input events are time critical so use WQ_HIGHPRI to prevent
user space CPU load to increase latency.
With kwin_wayland 6's explicit sync mode user space load was able to
delay the IOMFB rtkit communication enough to miss vsync for surface
swaps. Minimal test scenario is constantly resizing a glxgears
Xwayland window.
Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Link: https://lore.kernel.org/r/20250226-apple-soc-misc-v2-3-c3ec37f9021b@svenpeter.dev
Signed-off-by: Sven Peter <sven@svenpeter.dev>
-rw-r--r-- | drivers/soc/apple/rtkit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/apple/rtkit.c b/drivers/soc/apple/rtkit.c index 7e7b4f64ab17..4b78463dd5a1 100644 --- a/drivers/soc/apple/rtkit.c +++ b/drivers/soc/apple/rtkit.c @@ -696,7 +696,7 @@ struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie, rtk->mbox->rx = apple_rtkit_rx; rtk->mbox->cookie = rtk; - rtk->wq = alloc_ordered_workqueue("rtkit-%s", WQ_MEM_RECLAIM, + rtk->wq = alloc_ordered_workqueue("rtkit-%s", WQ_HIGHPRI | WQ_MEM_RECLAIM, dev_name(rtk->dev)); if (!rtk->wq) { ret = -ENOMEM; |