Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp481198rdb; Tue, 5 Dec 2023 10:29:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzvYpu8BNh24FwMZk2Ex4Z/761c1/dJq8+gofnH0ROENAQOE+gTtUfrP2eBStHsmY0jZNF X-Received: by 2002:a05:6a20:8e10:b0:18b:a1a2:854f with SMTP id y16-20020a056a208e1000b0018ba1a2854fmr3584408pzj.49.1701800940360; Tue, 05 Dec 2023 10:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701800939; cv=none; d=google.com; s=arc-20160816; b=uE15Zsuu6I4H93Oi+vqzQVeB27AwMjGzkY/nYMl3a9OybfMajHeeiv/zcEwZ+PLNMY ey+FvRl8ZBdYRXD/aLXA49d6zcq4ADvMXTyvssGxiaMWCCOeK9wEYmX0qdaJRl7k9zEA 7R2E8OQU0FmlGDGxpKdrEuwLZTL1ScMyUFIx6c/zvS8f2g9zkB6Fm4xUKiYfuG587pFO +qd4QwBRL63/2o2K4KVqOF7D9wPC4ZCSEyxnZCbyW0gY9yeA7HbZtSlZCliLl1iCQ1Im pnv2KkEpIYzGE6/r9/lrmS5qQZLkjXPc9LifOhbrCcytKAb1CKuCMG8ihKfny2Zjx+fB oFWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=L8MAQ1Emi2jCjaoH7WqvjyWqWAD8pvizcprsR94furY=; fh=5cMh8CKYPGN1F0fzuaj1xrlN5+dBfa6bPK4XIprQ5s0=; b=zgFnbbYn3oWYDbwsuEEPL6Ht7JWuz4j4nwvBjDF2URnPlFmhArvaDGbBstim4a5boH JHCJIaqbPiBvHqLWdX8qJMxvZWGYzraMB8FcxNuAwncYmJRyxDOwO2TluSu7S5YKs8OB GyCtduh5Wxhd0v6kyvpzUMOkBkzIwqCwkU5xYl+5pZM9cDWQsmnTbEY9a3PJTECdQXb6 H9TExcGDQ1R8zfwPbbZ7o15E5Syl3+iosugSSUymFp94kzHK51A8Hmiezw8DAdcvjmwz R5gnqMMlSOirVvo6I1aUzj1x4ADgZWFVietm3PDai5Q8GI59JaM6q5TSdh/2jwqy22fy u+3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wAnEGkLN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=SfVCePc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k28-20020a63ba1c000000b005c662c8da7fsi5820197pgf.730.2023.12.05.10.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 10:28:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wAnEGkLN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=SfVCePc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C6479804C6D4; Tue, 5 Dec 2023 10:28:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345948AbjLES2k (ORCPT + 99 others); Tue, 5 Dec 2023 13:28:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235682AbjLES2h (ORCPT ); Tue, 5 Dec 2023 13:28:37 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A59A1B6 for ; Tue, 5 Dec 2023 10:28:40 -0800 (PST) Date: Tue, 5 Dec 2023 19:28:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701800918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L8MAQ1Emi2jCjaoH7WqvjyWqWAD8pvizcprsR94furY=; b=wAnEGkLNxkgpsPtvpE6ydat8g9JO/jw4ewJg2IGs5CIkL8FDnGSmCOrO5TU0VH9hGt+be3 rxJktjw+rySLmBODnMT5UCj2MJ8PiVxBZh4XvzmRFbDk2l3X6D37f9LOe0CrMzzKRLkh8+ QJAJY4nzilwQH2ezfRSLJU4Y/R6OGO8JxSXbezdRP0MNF0MHkubugK6ZJl6BVjqiu9+12O bLVdjH18ysFs1dy6eMxAp3AzrZNlolYUBMz9rLBbOf3aKlsk0Yr1M54zy4MG+7GoWo80ny pikDLFMBo63xUsl5TJi8s6X1bw0YVTMypGmbVnw/Fvm7FdXsTd+6mRuJ+EyvnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701800918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L8MAQ1Emi2jCjaoH7WqvjyWqWAD8pvizcprsR94furY=; b=SfVCePc2VbLAsNakDeRV2UICQjTkhaqXmyFKXaEwpqE/QmVPV4lmp2BUGInpGqIn2wm9qy M3sdXivOFznfXkDA== From: Sebastian Siewior To: Anna-Maria Behnsen Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , John Stultz , Thomas Gleixner , Eric Dumazet , "Rafael J . Wysocki" , Arjan van de Ven , "Paul E . McKenney" , Frederic Weisbecker , Rik van Riel , Steven Rostedt , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Srinivas Pandruvada , K Prateek Nayak Subject: Re: [PATCH v9 17/32] timers: Introduce add_timer() variants which modify timer flags Message-ID: <20231205182835.DNCNokiI@linutronix.de> References: <20231201092654.34614-1-anna-maria@linutronix.de> <20231201092654.34614-18-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231201092654.34614-18-anna-maria@linutronix.de> X-TUID: CbN7IBXSeobx X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 05 Dec 2023 10:28:57 -0800 (PST) On 2023-12-01 10:26:39 [+0100], Anna-Maria Behnsen wrote: > Timer might be used as pinned timer (using add_timer_on()) and later on as > non pinned timers using add_timer(). When the NOHZ timer pull at expiry > model is in place, TIMER_PINNED flag is required to be used whenever a > timer needs to expire on a dedicated CPU. Flag must no be set, if > expiration on a dedicated CPU is not required. Slightly reworded. | A timer might be used as a pinned timer (using add_timer_on()) and later | on as non-pinned timer using add_timer(). When the "NOHZ timer pull at | expiry model" is in place, the TIMER_PINNED flag is required to be used | whenever a timer needs to expire on a dedicated CPU. Otherwise the flag | must not be set if expiration on a dedicated CPU is not required. > add_timer_on()'s behavior will be changed during the preparation patches > for the NOHZ timer pull at expiry model to unconditionally set TIMER_PINNED > flag. To be able to reset/set the flag when queueing a timer, two variants > of add_timer() are introduced. and here. | add_timer_on()'s behavior will be changed during the preparation patches | for the "NOHZ timer pull at expiry model" to unconditionally set | TIMER_PINNED flag. To be able to clear/ set the flag when queueing a | timer, two variants of add_timer() are introduced. I let you be judge of this. Sebastian