From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 F1E87438FF4 for ; Tue, 5 May 2026 12:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984890; cv=none; b=p7H7msMINXFhy1hClj4jRT0MFpvBAITz/WaCPdzSnO1UNMCZ+VJ2O3nI8/p/m0iuL7MJ1oVvzZD+yvZAlYGd0A+nS/erfeV1YJFpFeNsD75FIo5uKuUOMsHYN/BYqDuIeN8KQAmNeP74reKSsTHccnkhVQuPrQa5BpaEUvkzrlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984890; c=relaxed/simple; bh=Hty96BS5PtbB2Q58EmJu9tKRMSTamL3pn4a+cQHpLeg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A7fDt2sRMrUwxh9eK1S0uUrhXtQxbsbT3qYMphHCZDmRT6KGZb6ynLCWcwk2gCKdrE/lm9cYNMQ+MmVEaxri79Jd8A/pTOzFrHzVfuWkBOIylgUixSmm+SEZ6ymIC7sdw+iIX8a8xG+maoe/VS6fZquZB1ShHZAk5TC8SLIFu9Y= 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=IfucqGDi; arc=none smtp.client-ip=209.85.128.54 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="IfucqGDi" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-48909558b3aso56907735e9.0 for ; Tue, 05 May 2026 05:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984887; x=1778589687; 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=qrb6aTY9fjzTYjfhR4sj37L4OIFFkdMpt+CucvwllCc=; b=IfucqGDiCCzz3Zq9cxpXHJYC5n/wWm4dH1CIcC7gTJXUCN/i4E+iBAi/GsRXb1PgdW RL8CFEYQXLUAf153XRIPmgLr4e+5r8KU/pg5HOodUVQu9zSy9e4B9AejuogpR388c/zX j0U6oboYaVzKddAGuVOsSBg/2NMjrJhQr79gPqNX0ucUaZ+QIESIGKplX7GFeS9p3Gr2 pGr5sCo2k7gG8lC7jt38a8K9C9HvKW68Sx0ODNFhVTlW5HZ5P1E7P/sk61F/k1RXxzUH 3xJr3UBK3fgKIHFmJ1NLvrPK3rOg6VN0nm18I+a6TWcd5J2v6nuUwh7LWBVwnMTBRx1Z 5oEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984887; x=1778589687; 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=qrb6aTY9fjzTYjfhR4sj37L4OIFFkdMpt+CucvwllCc=; b=YUS5DroXcEZvt7gEifD7A0ALMRrdSHZrNk4vwQiHIGfdDi9JUND/xma55W+cVbhWuK Uwn6+eGXx85oD9i57b0ih7dbrqYSXbA9QWDpaeJlBD9ca7xHpJw06U20Q4oOZaSNkVbf CU6l+/iNgPO3byTH8NRQz7vqJ+C2VdRmuxklSnSNvVC1qXMZ2D9yRV1uQ022dFDckoCF TXfreh1FltkWMs1wJvlmkW16LFuCG6yAQ1NA9iQPkm3/OEpug4nPhtsgIZaRYxAIPS3j fE54PQXKPlR7ZUdmshu8yZYBAyDmD2dXOMA1d+07NCdQqbF/7/HtM0Wj4dVSRfoXlwvC ECOw== X-Gm-Message-State: AOJu0Yzd9JTrrUyRpHLDuyAw8+VkgkmpUKGtW15nJHfowpMW/VCi3Jmf C+3zkVsfAqbfKmUyNl9i8tC7rADJLm1dvxC0WxAIFCp+roXpprxQNB2lTtZawTuny51/lMjKH0c 5zztLGUI= X-Gm-Gg: AeBDieuuAh/sSHKf433kvWvachre5P7DTfeIxxm/Gt4gXbsGO8xhIgWKzHWVNXNWnMA lWrwMUarCLQ93ym3w16MuDb50NUg/LBy0Xqo0aCWsRh46YFGrJKPU4BQdhASH+13tZQsTvhnouz 7aPnD9hwRJ9Kk1LihkgQg1hnPJ3I9jgHQSzp+kCkSn54WY+X6tj7lAPHAHdFdrwndluUfYaN48e MvDb9TMcksS+awObeSYNhgWpE6XJI9tfXWklzDrZjoUMzRfSaadC+zUCf9ZUfPl+PiHoH5BNNox ABvvKuYyZQkTHJ45LzrXKOzoRy2bVWy2RDCMWt5Yr7JGOCpEx8F7Ex3bGX4zH6ITrmuzd7Onejc RCRakFK1awcn6W0/uYsTcS33udK1Bdu4RemWrLZQPxe1iBj85pyMD0jNCiiCZ/qV9WZpfQ3u3w4 9wE61TLfZlU/kIztZayo/4olyNg5Ey8Bx30jAwMl2Jd6sXJFs= X-Received: by 2002:a05:600c:c089:b0:48a:53ea:140b with SMTP id 5b1f17b1804b1-48a98676b77mr195413455e9.28.1777984887157; Tue, 05 May 2026 05:41:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:26 -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 , Marek Behun Subject: [PATCH 3/6] platform: cznic: turris-omnia-mcu: replace use of system_wq with system_percpu_wq Date: Tue, 5 May 2026 14:40:59 +0200 Message-ID: <20260505124113.214297-4-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 Currently if a user enqueues 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. This patch continues the effort to refactor worqueue APIs, which has begun with the change 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") Replace system_wq with system_percpu_wq, keeping the same behavior. The old wq (system_wq) will be kept for a few release cycles. Cc: Marek Behun Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/platform/cznic/turris-omnia-mcu-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/cznic/turris-omnia-mcu-gpio.c b/drivers/platform/cznic/turris-omnia-mcu-gpio.c index 7f0ada4fa606..4e430d6c3fc4 100644 --- a/drivers/platform/cznic/turris-omnia-mcu-gpio.c +++ b/drivers/platform/cznic/turris-omnia-mcu-gpio.c @@ -893,7 +893,7 @@ static bool omnia_irq_read_pending_old(struct omnia_mcu *mcu, if (status & OMNIA_STS_BUTTON_PRESSED) { mcu->button_pressed_emul = true; - mod_delayed_work(system_wq, &mcu->button_release_emul_work, + mod_delayed_work(system_percpu_wq, &mcu->button_release_emul_work, msecs_to_jiffies(FRONT_BUTTON_RELEASE_DELAY_MS)); } else if (mcu->button_pressed_emul) { status |= OMNIA_STS_BUTTON_PRESSED; -- 2.53.0