]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: ipw2x00: replace use of system_wq with system_percpu_wq
authorMarco Crivellari <marco.crivellari@suse.com>
Thu, 20 Nov 2025 09:45:24 +0000 (10:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 20 Nov 2025 10:55:24 +0000 (11:55 +0100)
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>
drivers/net/wireless/intel/ipw2x00/ipw2100.c
drivers/net/wireless/intel/ipw2x00/ipw2200.c

index 215814861cbda584f4d27b43a9ba0382090ed779..c7c5bc0f16509a687b78abce2316ca06a159c7b2 100644 (file)
@@ -2143,7 +2143,7 @@ static void isr_indicate_rf_kill(struct ipw2100_priv *priv, u32 status)
 
        /* Make sure the RF Kill check timer is running */
        priv->stop_rf_kill = 0;
-       mod_delayed_work(system_wq, &priv->rf_kill, round_jiffies_relative(HZ));
+       mod_delayed_work(system_percpu_wq, &priv->rf_kill, round_jiffies_relative(HZ));
 }
 
 static void ipw2100_scan_event(struct work_struct *work)
@@ -2170,7 +2170,7 @@ static void isr_scan_complete(struct ipw2100_priv *priv, u32 status)
                                      round_jiffies_relative(msecs_to_jiffies(4000)));
        } else {
                priv->user_requested_scan = 0;
-               mod_delayed_work(system_wq, &priv->scan_event, 0);
+               mod_delayed_work(system_percpu_wq, &priv->scan_event, 0);
        }
 }
 
@@ -4252,7 +4252,7 @@ static int ipw_radio_kill_sw(struct ipw2100_priv *priv, int disable_radio)
                                          "disabled by HW switch\n");
                        /* Make sure the RF_KILL check timer is running */
                        priv->stop_rf_kill = 0;
-                       mod_delayed_work(system_wq, &priv->rf_kill,
+                       mod_delayed_work(system_percpu_wq, &priv->rf_kill,
                                         round_jiffies_relative(HZ));
                } else
                        schedule_reset(priv);
index 24a5624ef207113ec4712e37bc495b15bde41630..09035a77e775f59e9a2ac463cc435f9c0711e9c0 100644 (file)
@@ -4415,7 +4415,7 @@ static void handle_scan_event(struct ipw_priv *priv)
                                      round_jiffies_relative(msecs_to_jiffies(4000)));
        } else {
                priv->user_requested_scan = 0;
-               mod_delayed_work(system_wq, &priv->scan_event, 0);
+               mod_delayed_work(system_percpu_wq, &priv->scan_event, 0);
        }
 }