From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 28F8243635A for ; Tue, 5 May 2026 12:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; cv=none; b=HFjOlnnjCi0ir7iQyFGAdlOVf5nroaIeUVJrD7OmDrFCdsTyQ1HmC1PbIdnajuVAe8tGOLKo6g5DtvKGvZO6p1tScs2tDYdrm3sqCdFjaImJ0/Xm2Pas+dWIwMHZ4h9n+JX8vnWclpJqbbokGBKz67YchrpO0GZxaJhXBs1pWhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; c=relaxed/simple; bh=GmaAT+N48lUutFLHNFv3ep+nvoqP7rTy831HR87cbE4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YrXPpDuu2wYvKz8poBB78R01jHXheaVOQsBcx2Jp8muaw/Q+WhZ4+TauiOuo0kwT6qoRkQLP66LBjZ4zr9vpvpQLLuMtYa9YmGp+i5Ug6yEsznnvbu2evLzRSOzSXjb3jtRGvTi9FbgwLtK5pE62ikFzYHTcGE+PHE1+3veN344= 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=dGQMS/Wv; arc=none smtp.client-ip=209.85.128.52 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="dGQMS/Wv" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-488ba840146so45648885e9.1 for ; Tue, 05 May 2026 05:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984886; x=1778589686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MI/5IJ3e+ldinfDgX6gmo9Im5PY+/ssJmcCUdcdU+1g=; b=dGQMS/WvIKmRoN/djvqgAaiyANFG9/W2gFZVGUf1i4n8N1X+Vz0exshWhBF1sHq3vT 9xB2mXkmLJCSyqigzYSGYvsleSf1fLfrofdLso0CCkBPZMwgYTFqT3t5T3qH8b6EKp8Z ZXQvGvCVeAm6SOqoyuPaQ+k2fN0g8UWgQhPbIwDVFiM/NoQuv/KQcSUEkzLCzrwJl8nr 4dRMQMTCobJ0XPsMy4NwyMRE2eOu3PgeemnccK14j3/ldfJb9+hXr2Dbq42X5KAvsyg4 2411eIZ1JJRCga7ND/ljuyFpnX8//m2QZh1+SQI5c6x+qzPE1Tj4Z+ge6XmXkYI9oj+a zGMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984886; x=1778589686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MI/5IJ3e+ldinfDgX6gmo9Im5PY+/ssJmcCUdcdU+1g=; b=pq1riC0bk7X0+1rAItZDAmRhuB8ORFLesRbM6t8DE4zE76ED89l4Z86adac40kH1Na kwY9opzkgGxUX1N1+gjwO9x1TjJPzlFFZoHeeJ7w1O6JCowi4MLATe3R08seJtzoq5mM n7WTu3ClosbijTu/DHngJnfUplDdbx3EpKMgqgZf+qwba6yGV3VmbKkafEJs7zZVbP42 zPkgB7uu8CWK1GAQ2t+r4fjumhNVZqdA75RGHhT7TjUNjD2kMQYGIDH7SgSOxaVXazdb 0PFDkEs1NN1C3mncrkJHgdBQCY6h+SpqQd3AkxLJ5ekvnRPf5ZApsDEnUQ1R6Et4MoS4 MvOw== X-Gm-Message-State: AOJu0YxGoINjj4aVgtjga4zzBhZMSud2tH/3n0MesWJ25T8trTh8LQZR VMI1D6OL+LicGthzBGKLGUtwRLEIyhOQQQXRWfFsTP/TR1zH0JlCSmRPPfxzGYOU8IlF9zhqlfn xW4SqDgM= X-Gm-Gg: AeBDievtjAZt2/+/zbxLIGsnY3HppeMbbgvYga+24rQlo0LackC+QaDTpuPS4kDtJh5 39/BLsvaw8N66N9L2Np6PUhB7G/TMhISZ6KXRixluUidN2tbz1ARMqfJxN5kHUNZWDBZZDhFSEg 0oLki0jfSerrGI33q7sHPocAyhX2F1h19dg+pbGgLCMdnVHhhSVNBo2JToQ28gdZM/StaGkoQf0 dZM2roDV3o26Igmvp4u7mollYUjvhbcP73A9nJ4sTSBG26g08dR/k6Rgtx6rIR31OAeCc66aKpu BYEV08MswY9BGCBQVGaBGEL3My77l8l1RweTzUhcMfx9oCDDqz/Jqll6vnZHNTv9t+Y7YefmTuL fuSzVUxdbPn+Omp/V4Yk6n3/eymdkeorZ5d1rMe4Q9HtoGvlzHVqlJs4U1Q88mbXC42xN3Ag01W xpX4bGvENPJ7VCnOF6HbM/eHmv0uuBat+sLhrEKp5F0NP/Qrg= X-Received: by 2002:a05:600c:3b02:b0:48a:6fd4:d3d4 with SMTP id 5b1f17b1804b1-48d18ceff2dmr46158165e9.29.1777984886279; Tue, 05 May 2026 05:41:26 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:25 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Mauro Carvalho Chehab Subject: [PATCH 2/6] media: synopsys: hdmirx: replace use of system_unbound_wq with system_dfl_wq Date: Tue, 5 May 2026 14:40:58 +0200 Message-ID: <20260505124113.214297-3-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-1-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, workqueue users must be converted to the better named new workqueues with no intended behaviour changes: system_wq -> system_percpu_wq system_unbound_wq -> system_dfl_wq This way the old obsolete workqueues (system_wq, system_unbound_wq) can be removed in the future. Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c index 61ad20b18b8d..1061ab50dd64 100644 --- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c +++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c @@ -1776,7 +1776,7 @@ static void process_signal_change(struct snps_hdmirx_dev *hdmirx_dev) FIFO_UNDERFLOW_INT_EN | HDMIRX_AXI_ERROR_INT_EN, 0); hdmirx_reset_dma(hdmirx_dev); - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_res_change, msecs_to_jiffies(50)); } @@ -2238,7 +2238,7 @@ static void hdmirx_delayed_work_res_change(struct work_struct *work) if (hdmirx_wait_signal_lock(hdmirx_dev)) { hdmirx_plugout(hdmirx_dev); - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_hotplug, msecs_to_jiffies(200)); } else { @@ -2253,7 +2253,7 @@ static irqreturn_t hdmirx_5v_det_irq_handler(int irq, void *dev_id) { struct snps_hdmirx_dev *hdmirx_dev = dev_id; - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_hotplug, msecs_to_jiffies(10)); @@ -2518,7 +2518,7 @@ static void hdmirx_enable_irq(struct device *dev) enable_irq(hdmirx_dev->dma_irq); enable_irq(hdmirx_dev->det_irq); - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_hotplug, msecs_to_jiffies(110)); } -- 2.53.0