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.

wifi: ipw2x00: replace use of system_wq with system_percpu_wq

This patch continues the effort to refactor workqueue APIs, which has begun
with the changes introducing new workqueues and a new alloc_workqueue flag:

commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq")
commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag")

The point of the refactoring is to eventually alter the default behavior of
workqueues to become unbound by default so that their workload placement is
optimized by the scheduler.

Before that to happen after a careful review and conversion of each individual
case, workqueue users must be converted to the better named new workqueues with
no intended behaviour changes:

system_wq -> system_percpu_wq
system_unbound_wq -> systemd_dfl_wq

This way the old obsolete workqueues (system_wq, system_unbound_wq) can be
removed in the future.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Link: https://patch.msgid.link/20251120094524.45264-1-marco.crivellari@suse.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Marco Crivellari and committed by
Johannes Berg
799e9870 fec4d9d6

+4 -4
+3 -3
drivers/net/wireless/intel/ipw2x00/ipw2100.c
··· 2143 2143 2144 2144 /* Make sure the RF Kill check timer is running */ 2145 2145 priv->stop_rf_kill = 0; 2146 - mod_delayed_work(system_wq, &priv->rf_kill, round_jiffies_relative(HZ)); 2146 + mod_delayed_work(system_percpu_wq, &priv->rf_kill, round_jiffies_relative(HZ)); 2147 2147 } 2148 2148 2149 2149 static void ipw2100_scan_event(struct work_struct *work) ··· 2170 2170 round_jiffies_relative(msecs_to_jiffies(4000))); 2171 2171 } else { 2172 2172 priv->user_requested_scan = 0; 2173 - mod_delayed_work(system_wq, &priv->scan_event, 0); 2173 + mod_delayed_work(system_percpu_wq, &priv->scan_event, 0); 2174 2174 } 2175 2175 } 2176 2176 ··· 4252 4252 "disabled by HW switch\n"); 4253 4253 /* Make sure the RF_KILL check timer is running */ 4254 4254 priv->stop_rf_kill = 0; 4255 - mod_delayed_work(system_wq, &priv->rf_kill, 4255 + mod_delayed_work(system_percpu_wq, &priv->rf_kill, 4256 4256 round_jiffies_relative(HZ)); 4257 4257 } else 4258 4258 schedule_reset(priv);
+1 -1
drivers/net/wireless/intel/ipw2x00/ipw2200.c
··· 4415 4415 round_jiffies_relative(msecs_to_jiffies(4000))); 4416 4416 } else { 4417 4417 priv->user_requested_scan = 0; 4418 - mod_delayed_work(system_wq, &priv->scan_event, 0); 4418 + mod_delayed_work(system_percpu_wq, &priv->scan_event, 0); 4419 4419 } 4420 4420 } 4421 4421