From nobody Tue Dec 2 02:05:57 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6294A274B40 for ; Thu, 20 Nov 2025 09:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763631936; cv=none; b=UYM78u2qcTxGQAnAwkz6pgZ94WXeVvBwzlv8s2Z36yCnnX8SDpzqCYE/YhejBefA17dGKFj6beQwwejrEJwEQam6VLbrgZuZtzA6znX8+j+UKKG/95p92rzntO9+91zfsJPCuUfaJvO6gt4DmSMhHrI0dVi3yd96a6fdOJQzaoQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763631936; c=relaxed/simple; bh=5XPPGGBoCbHGefEO+FRoaO6DX20WPtSmcpQHNUj6x+I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CXPG1SvZH7GtlFOvcCvZDUGuoz7e0nPWhc67UByF++qb4v029nXQZxa9TCN2Z1TyA0YfOSomikYHXwqqpA5ZCMv5WEGaB/iAge0eWTy3tq6OhEa2S903dy0/qGFq+R4G7l5fwYEDq8VrCslFl5EI8tWUP+7xt7YD5jKO71PJhB4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=WTqg4dzv; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="WTqg4dzv" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-47118259fd8so5307785e9.3 for ; Thu, 20 Nov 2025 01:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1763631932; x=1764236732; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1zjA/VyTqMIsiRf3epsUZxITmAB9n8+/j+Xkg9KSAtk=; b=WTqg4dzvx8+VTV9rYMreSwT4fyBFq8pngHhlTik4A73bwIEgkeBLqL6uLmyWYmqRfE P1HwmvKbbq3p6LC2S57XKlC9DjKKDd0rTfhlAMwWgvuuapatggi6s+64kPTXEr8KUuOB PW1fEiflD2LqPZnAi5SsI1O18ZbqVg4Qj6iFTTKTxUXFyfp+QUtrmzKDJ8nj/As09A2V zdhFhNTzEqJD/x19dNWz5RaQeeDfGyynX1YdlT2+CsdKEASpjlyQuaJnjXla+LStJkTt CjYf++FcSElTtaWC3nJGrpA9qtuv5Ldbf4U0qXuTqYBT3PAlDD3gmedMJqDV0Hr4N+mK X+KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763631932; x=1764236732; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1zjA/VyTqMIsiRf3epsUZxITmAB9n8+/j+Xkg9KSAtk=; b=D46c8DsD0oCbJ4lB/cPSzO+0wXAJgBUrdueKC4IlRZ9A4M6mRw+2YendnV93Q9lep6 QyHKhHyYH1kpXDBkpYdbpxHSvbeuZoJ832citwTEBXSXsWDC0qPajTxKdulDX9C4wTCc MBHd+y+vnRxSH9GNEF+FiYBCM5L54TceGncJc0vqsnMDqPxO/a9MNAPUzRJYn4l5fN0k PaQwD8SZv/Sk9CMj7o8t/qB3sDVDndPZHOxQwYPy6LGAMd0tdhjN0ZdgbQNGuIsZEJHb kTIbJxxJ+NtVSZ5R09DpKfStUAsFTvpqVsAsF6f2qjNNDo0W5PHOAyYMc7YKC5Tm/N0S hVUQ== X-Gm-Message-State: AOJu0YyexLaxYuESVOlssGJEn4iT5VV0gFKVGyacaIJKiH/nE2GA9eIl gZ3z2r/Z8vs1Cc485ZBK7BT5smLsfmze2x1dx9dFs3HmKKt6bHaBfXzmlTdY0xfOmKwKm6VbOMx dDhGK X-Gm-Gg: ASbGncvOZk/c9VvMJuc+ulJUc6fgzRfrTZbnbEw7Hpc/O6WBv+1YqvaDytpsQtjCIBa MXMFv7NTFtGoci5QHk9PcQvFPMUo4aGMVyRiPzr+G30HGJWlhVrI33o9VgSqZU0XtKJe0ppWLDA sd5Lf9zBU8XIyBkRmJKgwso0uddBc8McHeZuXzSfqErVWSNlzoDhlRhGzdAt+AHdSPmgzsDr3+r GZWKYxbqQbP/R9ALd1a/NYi2XzUC+KEvSw6NqznuTQfbkTjMEDJmfp7O5E0FT+gnlJx4KlXgd+P ksqqViRLOV2AMkRJY5r+xm+TqbKoaNB+4KQA0sSwAz2NLdkgVALTKOlfhTfAo1PbUkyCtOdfSio k95LFjfi/Sh6c+QqKer+AEYEz9NMO4ivq4csNmjSNVS7wF5Udoxv6eGFZZ55u/wZ0MVPw34iMKf GOvkYEjWWaeyIpnpBUFtcKlUsc3nK0b9rlVHw= X-Google-Smtp-Source: AGHT+IFhYm/siJFOPAjAq/6cMGu7T/hopEb0oUxkkJZQIc7Xz6aU0nuhBE+FQ85paMwyFHBCDL8XFA== X-Received: by 2002:a05:600c:1d20:b0:477:7b30:a6fc with SMTP id 5b1f17b1804b1-477b8aa06f6mr31942855e9.30.1763631932409; Thu, 20 Nov 2025 01:45:32 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477a9739964sm63030145e9.1.2025.11.20.01.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Nov 2025 01:45:32 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Stanislav Yakovlev Subject: [PATCH v2] wifi: ipw2x00: replace use of system_wq with system_percpu_wq Date: Thu, 20 Nov 2025 10:45:24 +0100 Message-ID: <20251120094524.45264-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 individ= ual 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 Signed-off-by: Marco Crivellari --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 6 +++--- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wir= eless/intel/ipw2x00/ipw2100.c index 215814861cbd..c7c5bc0f1650 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -2143,7 +2143,7 @@ static void isr_indicate_rf_kill(struct ipw2100_priv = *priv, u32 status) =20 /* Make sure the RF Kill check timer is running */ priv->stop_rf_kill =3D 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)); } =20 static void ipw2100_scan_event(struct work_struct *work) @@ -2170,7 +2170,7 @@ static void isr_scan_complete(struct ipw2100_priv *pr= iv, u32 status) round_jiffies_relative(msecs_to_jiffies(4000))); } else { priv->user_requested_scan =3D 0; - mod_delayed_work(system_wq, &priv->scan_event, 0); + mod_delayed_work(system_percpu_wq, &priv->scan_event, 0); } } =20 @@ -4252,7 +4252,7 @@ static int ipw_radio_kill_sw(struct ipw2100_priv *pri= v, int disable_radio) "disabled by HW switch\n"); /* Make sure the RF_KILL check timer is running */ priv->stop_rf_kill =3D 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); diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wir= eless/intel/ipw2x00/ipw2200.c index 24a5624ef207..09035a77e775 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -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 =3D 0; - mod_delayed_work(system_wq, &priv->scan_event, 0); + mod_delayed_work(system_percpu_wq, &priv->scan_event, 0); } } =20 --=20 2.51.1