From nobody Mon Dec 1 22:37:13 2025 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 208B433345C for ; Thu, 27 Nov 2025 14:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764254509; cv=none; b=nygplB04PPNT36DnLafHOiXSfDVgkKdN6VDHrFqcH7e0XTEe4W8c5RVjn5j9WMgW2Z603yeR0ENoI9eVyHiMOsKfch1od3xRAcqDbqZtAF2fCEDJkN6KwQdRpsA5Zfgxmx4toaFbztOMsGqWIYY6ZY768IiFwwZiCVeRsseMBQ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764254509; c=relaxed/simple; bh=LPEPMnco5Xm8MILGkRvk/pMSNneneSPfuGpd3/HN5VA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hdqI95gPv42rcb9dBs7o4Gclvv/1tgPI6EVoCJRIEFc4i5vMUom3wKKS1iOT23Xm/wjs9IrakKducklDr7cW8q2YYkRM1tAOSoQOUT8m0OW72l200hmvoAsnNVbP0ctckSesMwarv47yR9eIsJ1Rzb5Ax+56GeAvhe1El4PRbAQ= 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=XeRdmx7s; arc=none smtp.client-ip=209.85.128.51 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="XeRdmx7s" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-47789cd2083so4559065e9.2 for ; Thu, 27 Nov 2025 06:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1764254504; x=1764859304; 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=c5QhYCMIe8+tnJfC8W7qm9EkL8jbmR0b4KbpIadX0+A=; b=XeRdmx7sIl7BlR3rJjPd281XAbFENcmAlstHl4GrtLYcE9gk+5v4q5Czc1ENqWWd4a bK6RXNEQ0pGGH6cELM+FIBivpAEaEI70DHKAAu30vky1J91E4DRjqW2OcUuxk/SjYk+V /Uanuv9RnEpKuy93AnUyQ6L3/seyynD+k+a7DMWP9EUElqcz9eVnpSzuCqnG1j8VFbVx ZXJsIMXGWJj+vRBtDScuZh5lpyI28vhwua5x3crhmAuwix+Qc/aKHuswgNYrwsBv6Lc/ gB0wgwdtDtwPApt+2kVYeU30p2wH2DbH4/tcGco+rrj3nUN+MDUbwWRXy3IUPaSNb18m 5thQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764254504; x=1764859304; 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=c5QhYCMIe8+tnJfC8W7qm9EkL8jbmR0b4KbpIadX0+A=; b=Xqi8MYN03fgtKziNnKZ6SLsXzyFIVQ2uVQ594gsojBKTC3HUn+YleXjOfpT45YDnX3 bcdqVRNGAiM7jeQQWwjsOuOJ5Is7c0x/wMl7yTAH4WRmlk6Gchfi2wy3ZZIeeyHUn9RN BnCw0o6gvMSNUOWhFMXFTc80v0KQG9BJXTtXtc96ttvXNmiimFGq7YhD1HLdacohFZjH sfnBQe2xR9Kw711nnE4mCgkVX8o5XIbTcvGNNCteN4p+bIaOQkg4avq4gaiqdQSgbUBl h8sDWCf7Id6vVml00XoxLH4rRIvUxelV0IDFFW+KbneVLb2pVCF/8Z1O6s9GaAnFUDQ6 M8VA== X-Gm-Message-State: AOJu0Yx4ow5otFEwrP7xDZytQSHhyA56L9y+jteKGyIA6P3AGnBXsHEK C/UgP9fmIScqSUDET5/xvTVpSQen3VwZgfyIFaNmlOSAeyrOqcwHm4X+77lgvz9QsQVocjHUDZB javUV X-Gm-Gg: ASbGncuQlRZBHqL+b+Thzw/gNx6g48t/GxZHJjE/a0vj6AaD6Uec/DEeltnfpLLFr0c vNhmfGNW1M3m5In9zCJHJdqAX2WjC9ea2mbQNKWCxqZW9IQPfIW+jGIpgB8HCuLmXWqcmWqq9e/ 0hAosVu+e5Rj0xjD9FU57IptKSQUBCV04AZPgXuPPdaEx+Z0PhuNjBGwIYyWGx0+pzyudkl4UKo Gc9grxVKIPGgzPpc2JSZHq20rKoTUodtsjcjN9uUhkHDNivFNb/Tbc3RH+kHGzD/W6dgFDQX7Mr gnk7T5qoirJm1KDiSWSiJ6pZhOGKcLazC0PIDRHtabBpaS1wiMALa8DQ6L6A/Syku6/PgwAPl9K n+xVEn474k4sSD/jDbAo4j/BFYQfdEZuV1If/eGfKTfC/788ufnjKyVs8WKsNFyFniKA4noRzMG rj/msfwTIS9F/imm6LTfDlGt4dK4addfu0M73jUzcp+j/q X-Google-Smtp-Source: AGHT+IFYY06oLJ7g09W/M0ZrcXobhxX7T2QvNS6KAiC9yahbr2Fz/AYikghcO3j3I6L3pA0iEav/7w== X-Received: by 2002:a05:600c:19ce:b0:46e:48fd:a1a9 with SMTP id 5b1f17b1804b1-477c115dfaamr213338575e9.33.1764254503891; Thu, 27 Nov 2025 06:41:43 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-479110b6da9sm37351465e9.0.2025.11.27.06.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 06:41:43 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Maximilian Luz , Hans de Goede , Ilpo Jarvinen Subject: [PATCH v2 3/3] platform: surface: replace use of system_wq with system_percpu_wq Date: Thu, 27 Nov 2025 15:41:25 +0100 Message-ID: <20251127144125.233728-4-marco.crivellari@suse.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127144125.233728-1-marco.crivellari@suse.com> References: <20251127144125.233728-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: 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 -> system_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 Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ --- drivers/platform/surface/aggregator/ssh_packet_layer.c | 2 +- drivers/platform/surface/aggregator/ssh_request_layer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/surface/aggregator/ssh_packet_layer.c b/drive= rs/platform/surface/aggregator/ssh_packet_layer.c index 6081b0146d5f..3dd22856570f 100644 --- a/drivers/platform/surface/aggregator/ssh_packet_layer.c +++ b/drivers/platform/surface/aggregator/ssh_packet_layer.c @@ -671,7 +671,7 @@ static void ssh_ptl_timeout_reaper_mod(struct ssh_ptl *= ptl, ktime_t now, /* Re-adjust / schedule reaper only if it is above resolution delta. */ if (ktime_before(aexp, ptl->rtx_timeout.expires)) { ptl->rtx_timeout.expires =3D expires; - mod_delayed_work(system_wq, &ptl->rtx_timeout.reaper, delta); + mod_delayed_work(system_percpu_wq, &ptl->rtx_timeout.reaper, delta); } =20 spin_unlock(&ptl->rtx_timeout.lock); diff --git a/drivers/platform/surface/aggregator/ssh_request_layer.c b/driv= ers/platform/surface/aggregator/ssh_request_layer.c index 879ca9ee7ff6..a356e4956562 100644 --- a/drivers/platform/surface/aggregator/ssh_request_layer.c +++ b/drivers/platform/surface/aggregator/ssh_request_layer.c @@ -434,7 +434,7 @@ static void ssh_rtl_timeout_reaper_mod(struct ssh_rtl *= rtl, ktime_t now, /* Re-adjust / schedule reaper only if it is above resolution delta. */ if (ktime_before(aexp, rtl->rtx_timeout.expires)) { rtl->rtx_timeout.expires =3D expires; - mod_delayed_work(system_wq, &rtl->rtx_timeout.reaper, delta); + mod_delayed_work(system_percpu_wq, &rtl->rtx_timeout.reaper, delta); } =20 spin_unlock(&rtl->rtx_timeout.lock); --=20 2.51.1