From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 5B6773D9DB8 for ; Mon, 20 Jul 2026 10:09:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784542168; cv=none; b=X4zc1c0o095NtHadU5vtmN6ra0onzCvewRhlOqe/MsqivG+1wkuW0zlRwdE/CBp4WZkCW/kgg3o6K1q+TbII6/wle0wylsUEHTInTfp8MSp7c9kOt3d+EE4MFcw7d+ogJi9jkd4pkUAHecMBsP5zYhwWBYyd0kYfPRF6XPE+KI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784542168; c=relaxed/simple; bh=lpEOlelEDdowQ29B0K+0uxtyLSj3QirYX9EDl3TuqDM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qv4VCmeRi0i0iA13/mKdwbT5kwAh5b4hoYfk8SkhvbYxqAwYNw1OsepeIFfyPTg4eAcMSV1RN+yLusXwpWBeUKx36cj7cUryeSgv+VTtqEB7niURYS5semi6Be63NwHN3cVknP+6IU90KjH9M1epnwmDGU1hux4/9U2AX6spk4k= 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=B3hgWBVM; arc=none smtp.client-ip=209.85.128.48 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="B3hgWBVM" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-493f75f7172so77796495e9.1 for ; Mon, 20 Jul 2026 03:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1784542154; x=1785146954; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=2toGQllSDboah8Z4uj+3S/HCH3zIDshmSqNuhS072dI=; b=B3hgWBVMsj5d5/RdcxR38adGPDqr0SMQ8CgN/UFro7Ea5xKEQ+j4+e3B9qrYEzJF6Z 1j0PY6EE/hFK2if4/Tm1TLFr47TElTt2kYa86Hc/RGi+z2+H9RQMXjlnaf4xdBYCCdqq 2ifRvjie5pZbqdtlvUc6Sbgyi23+lpwXStRtpI3XJN8uHI1RZzhCrAWavN8Z6ugAYOqe +IP3P32WuhVmfr8wA/0VUULXqpJEVryPjkrDqUlK37t7Ka+RUlpXnlDmIG08WDFLw7xW TZlhxXfFVJPWzme296fOIWyNWXIaNkorM3KhxCJ1R3m0YK71piGTyDfH2tDUM7tgq/ZZ T+3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784542154; x=1785146954; h=content-transfer-encoding:content-type: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 :content-type; bh=2toGQllSDboah8Z4uj+3S/HCH3zIDshmSqNuhS072dI=; b=FMDeJHQphyDJCps8Is9Wb51Mhg//wCwYxfhQkGcEyqa5UJ9fNj7pG5ya/LRT1r4Qgo QMyEm3H7vk+ALnfHgUq8krd07Is/2bZjeoZ6Ce/G8GkBjf/2jvvRpxvftML0ecSTm2PH O3V71ZXj0vdV8h19CxQPQCYDQzoH/LjHEp30UoaulXrIbY1+GpjI5/A0JG3Lk0NQdf0+ /eF0HiLagaVWrBaFFydO0KxW+mz3UhUQaNxId9+cf/1A+mWpUKXMxFOq/VgTTZohx7c5 kbxXI4tu96nhFC+lSS6nR2GN3afHKHYkUFuNOc05EYiNgnlDYnvMebBnkFbSC8QT7cQN 5frg== X-Gm-Message-State: AOJu0YymzWJ6U8qhTCmhVwy79eRwAoD8rcN1SfXxBaEnengM4w6fOnB2 MXgntBde8hKki+OUZ41+cNU9um/z42nAif051b6Fz6am63xyptnnouQ5aHK3L1UtbTY3HaRk3PA QBcXQxuY= X-Gm-Gg: AfdE7ck5V/AB54DY6QcI//9dswNVzjclWw4QsnV9Er77hJfxex+Eo4R466gpKZX2mq8 XUkA64wVNnaODBy78RllhDikVARxMosWQ6r5qaqNfhyWiP2iFhLmTksE7Etg60r6BrLP4a9DxOG 6lvx15pQxJxVIEnsb411lCGRacNvUFaxEEAOe2SwmTN1wVbOlMapH5691Oi7c8YaMNzQu4QEyCj Lbo0YpdtV6JQcKqRAQVPxu704T2mkneDhKStCAFvmFF6KC7RQJEXSEfIS5Vdj1o6v3Yx6MnmlgR miatsiOfp3CXeR8D/WGup7hlIxpDHLik3p0YYL+or74WfhLqvIeOWTTofbtyS6ttIzbRUeTRklt jA8uGUGox7pesQbtVO8L4zFQMqLD3V2QcEaqOKeeEEZojBzi5M5hSh7qOKYNmXDGW/kB/yHcYEM BOAk9kxoOgJK3gl36ylFCfwcE5PjkbzT8TcfNE X-Received: by 2002:a05:600d:6447:10b0:495:63f5:7a4f with SMTP id 5b1f17b1804b1-49563f57a9amr3600385e9.33.1784542154242; Mon, 20 Jul 2026 03:09:14 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954a2a2504sm294792995e9.2.2026.07.20.03.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 03:09:13 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , MD Danish Anwar , Roger Quadros Subject: [PATCH v3 net-next 3/6] net: ti: icssg-prueth: Move long delayed work on system_dfl_long_wq Date: Mon, 20 Jul 2026 12:08:53 +0200 Message-ID: <20260720100902.155605-4-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260720100902.155605-1-marco.crivellari@suse.com> References: <20260720100902.155605-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the code enqueue work items using {queue|mod}_delayed_work(), using system_long_wq. This workqueue should be used when long works are expected and it is a per-cpu workqueue. The function(s) 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. Long work shouldn't stick to a single CPU. Recently, a new unbound workqueue specific for long running work has been added:     c116737e972e ("workqueue: Add system_dfl_long_wq for long unbound works") 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_long_wq with system_dfl_long_wq so that the work may benefit from scheduler task placement. Cc: MD Danish Anwar Cc: Roger Quadros Signed-off-by: Marco Crivellari --- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.c b/drivers/net/ethernet/ti/icssg/icssg_prueth.c index 591be5c8056b..0fba22c1046e 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.c +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.c @@ -1100,7 +1100,7 @@ static int emac_ndo_open(struct net_device *ndev) prueth->emacs_initialized++; - queue_work(system_long_wq, &emac->stats_work.work); + queue_work(system_dfl_long_wq, &emac->stats_work.work); return 0; -- 2.54.0