]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: Move delayed work on system_dfl_wq
authorMarco Crivellari <marco.crivellari@suse.com>
Fri, 15 May 2026 14:58:51 +0000 (16:58 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 28 May 2026 11:44:43 +0000 (14:44 +0300)
commit5a3feefbcfa652e65b9259708222dd31d180eb33
treefc1790d51675cb0f636a8171c8dcb7e6534b8534
parent84b27a3cdd512f88ef837a913f8bb54c0b9d9290
platform/x86: Move delayed work on system_dfl_wq

Currently the code enqueue work items using {queue|mod}_delayed_work(),
using system_wq, which will be deprecated soon and replaced by
system_percpu_wq.

   commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq")

The function(s) mentioned earlier, end up calling __queue_delayed_work(),
which set a global timer that could fire anywhere, enqueuing the work
where the timer fired.

Unbound works could benefit from scheduler task placement, to optimize
performance and power consumption.

Since the workqueue work doesn't rely on per-cpu variables, there is no
obvious reason that justify the use of a per-cpu workqueue. So change
system_wq with system_dfl_wq so that the work may benefit from
scheduler task placement.

Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Link: https://patch.msgid.link/20260515145851.318787-1-marco.crivellari@suse.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/hp/hp-wmi.c