From nobody Sun Feb 8 05:20:12 2026 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 AB5EC264A92 for ; Fri, 31 Oct 2025 11:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761909403; cv=none; b=jc41TowgvyT/o/BRw3PBtPPpTfNNXAPTg2y7IKUYf9JBOibOjp7SGbLm5+0BdZWSdzt6KMf294QZPhIy+57G0yJyztjiiGojFvPNMuTJgyW3YE5q+j7+fJs3JS34voAMqmPc1jYWJ7NzVgZmUKfAPxoDMDufiq8mr45dzQQLl2c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761909403; c=relaxed/simple; bh=qN38CT0TF/fW3+PzwztgKsAVnz0QCmJ5fxwPvyCFM5I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YxVKzvc7Lm7LJ7SLN7si92Fliosxh/uwpS7fmjSfjf/+CyK26B+LVtFMkJlAPvsBxFieRnny2InPqfeR7No/L9RDXQ+iDOG/pVrAn3WAZrhPg8LulOJzkPtTQ9k7E9rmBfAK70aKWXHpWnBkSey//TsqVNqC9nLWTDGpjCaatUM= 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=bd9a0jEP; arc=none smtp.client-ip=209.85.128.42 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="bd9a0jEP" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-47109187c32so11050115e9.2 for ; Fri, 31 Oct 2025 04:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1761909400; x=1762514200; 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=Xycop7wbord5TE45Na8jt3nX8C+21DdnTnC7CBQYq24=; b=bd9a0jEP8Bsy94WP0mnaUq0M2v4NCcFE0Dv0KzFARcrvCN1kAmtVzb+p5wiw9zuTkl gu7EjABrOry3xlrb8r/Q+M+KePRO9W1t0KADJQFMe8aa/y4Dw4747ckjHFmo/MU1aZPR oziHkvSGcyW59F/3EDo+EHw6QobpVOqmXYJ2aoQG5ydqNx9p/WPep/RQ4qvgrLKwxzGd 1/etetOum1i9Vrz5ZcbduqHppvbG1FyGpremZrUw09zi7u8MWrwR9rTqTbdLTTmPPZPd HMoTICIPaP307fWj6wSF7Lpg1jroi05i0RIgBBz1u6AS/BqHK6FXchXc9Yh1GAOd3Ztb 6WuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761909400; x=1762514200; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xycop7wbord5TE45Na8jt3nX8C+21DdnTnC7CBQYq24=; b=qY4AffWPD2c6PA5SgWAfYpWa5fz49c5f6TaPueex/iBXnSsTHstox4ktkwz5R580/Q F5TKkYVH9erKPkYZpuQ7kB56OGfofgci8zZXbqWQFGhLQ9wG3ZFIkhzCTrDwVlLPniQv CD25BUau5+zlCcStdexQEVRk4Ukgq+8oljpo88XO6541xUc3eE2k1H2Wa9+4tMI4HSeM 1DdGd+d8xw2tVEkx7js5W87d3P6YRhuBeaYF8miB8nEdfgS8H2ArDYLM4x/Yg57XrPNz RD5ZDe4xugXqo+Z75XkKHCBexrV/qmc0bDeHIcH4TDOl1/GDvpBwKsEK+UMuv69QwunX rFzg== X-Gm-Message-State: AOJu0YzJrNLG476+qXxUn7SaPtFKFjRF0JSipxIb2aqW4cmtjCUbq2O2 I4mlJqyqX+8nveVeeylPXKCIA4U15uuQJirX4XMEdKKgtdpZVxN8Y8VWRMhdzaEyAEksNMS8p9b 9ehkd X-Gm-Gg: ASbGncuHHafTzRW490W8UM35e7vRlTsogG/SC6bwGlvt8TkO/DSCPFK667QcgsHxYDi AuhxX5GhThFDNFq76zYUHA5y6thr9s/x4N8PM9ZSofteD0iNbdbkqzuCSfUiz28HJ4PUYAqNRQM /PX3svD8meJD1v5mvK0K6/93YDdWypTLui/nFtqNayx5Vt1jCsMx6yDPnnJX8e3pCpvnK0ZrjW6 +VyGGROt0ZHDmAzBSFbbU7hn3g1c1nG8toCoo792MBURgR8LCNeC/ZpmKVmqLaAirVe0RxUG27n GUnzWsUw8F8zFxaLKmuB9Dn4mpVEfbmvOKFY47MF1/G0YChbftMXznL8OVJCUoqLzuA3vflc5C+ sBf9STFX5hr6WdC03Jd9pocPdjfZ+UMd5oOjYMSnu2C2BhRJ3HnLCkVDFINsBpJ+d28j24fHxrW 1i2hynBDp2WkCzC2UKwm2EYf56IOK2JNOy3d0= X-Google-Smtp-Source: AGHT+IHwiiVmhpr3cXk2m6ooZOwHikOG8TzNlWLPGfZ7k5nDMwXDj7hi28vLxatiJoSm+MxMyjxS+Q== X-Received: by 2002:a05:600c:34c8:b0:471:115e:9605 with SMTP id 5b1f17b1804b1-477346a92d2mr16118405e9.35.1761909399717; Fri, 31 Oct 2025 04:16:39 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47732ddd2d5sm27222865e9.7.2025.10.31.04.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Oct 2025 04:16:39 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Bartosz Golaszewski , Linus Walleij , Kent Gibson Subject: [PATCH 1/1] gpio: cdev: replace use of system_wq with system_percpu_wq Date: Fri, 31 Oct 2025 12:16:28 +0100 Message-ID: <20251031111628.143924-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251031111628.143924-1-marco.crivellari@suse.com> References: <20251031111628.143924-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" Currently if a user enqueue a work item using schedule_delayed_work() the used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to schedule_work() that is using system_wq and queue_work(), that makes use again of WORK_CPU_UNBOUND. This lack of consistency cannot be addressed without refactoring the API. system_wq should be the per-cpu workqueue, yet in this name nothing makes that clear, so replace system_wq with system_percpu_wq. The old wq (system_wq) will be kept for a few release cycles. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Reviewed-by: Linus Walleij --- drivers/gpio/gpiolib-cdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 175836467f21..602ba46befeb 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -700,7 +700,7 @@ static enum hte_return process_hw_ts(struct hte_ts_data= *ts, void *p) if (READ_ONCE(line->sw_debounced)) { line->total_discard_seq++; line->last_seqno =3D ts->seq; - mod_delayed_work(system_wq, &line->work, + mod_delayed_work(system_percpu_wq, &line->work, usecs_to_jiffies(READ_ONCE(line->desc->debounce_period_us))); } else { if (unlikely(ts->seq < line->line_seqno)) @@ -841,7 +841,7 @@ static irqreturn_t debounce_irq_handler(int irq, void *= p) { struct line *line =3D p; =20 - mod_delayed_work(system_wq, &line->work, + mod_delayed_work(system_percpu_wq, &line->work, usecs_to_jiffies(READ_ONCE(line->desc->debounce_period_us))); =20 return IRQ_HANDLED; --=20 2.51.0