Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/rockchip: replace use of system_wq with system_percpu_wq

Currently if a user enqueue a work item using schedule_delayed_work() the
used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use
WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to
schedule_work() that is using system_wq and queue_work(), that makes use
again of WORK_CPU_UNBOUND.

This lack of consistency cannot be addressed without refactoring the API.

system_wq should be the per-cpu workqueue, yet in this name nothing makes
that clear, so replace system_wq with system_percpu_wq.

The old wq (system_wq) will be kept for a few release cycles.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20251031104846.119503-3-marco.crivellari@suse.com

authored by

Marco Crivellari and committed by
Heiko Stuebner
ab8559d4 0650f490

+2 -2
+2 -2
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c
··· 289 289 290 290 val = FIELD_PREP_WM16(RK3576_HDMI_HPD_INT_CLR, 1); 291 291 regmap_write(hdmi->regmap, RK3576_IOC_MISC_CON0, val); 292 - mod_delayed_work(system_wq, &hdmi->hpd_work, 292 + mod_delayed_work(system_percpu_wq, &hdmi->hpd_work, 293 293 msecs_to_jiffies(HOTPLUG_DEBOUNCE_MS)); 294 294 295 295 val = FIELD_PREP_WM16(RK3576_HDMI_HPD_INT_MSK, 0); ··· 332 332 val = FIELD_PREP_WM16(RK3588_HDMI0_HPD_INT_CLR, 1); 333 333 regmap_write(hdmi->regmap, RK3588_GRF_SOC_CON2, val); 334 334 335 - mod_delayed_work(system_wq, &hdmi->hpd_work, 335 + mod_delayed_work(system_percpu_wq, &hdmi->hpd_work, 336 336 msecs_to_jiffies(HOTPLUG_DEBOUNCE_MS)); 337 337 338 338 if (hdmi->port_id)