Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp125215rdb; Mon, 22 Jan 2024 14:22:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiNQMDNzaN/wydPHxJWYyc+u2paZu85e4Vpdersk0Ye/Mqr/rxXGIgos3G5n/Ycgct+U9a X-Received: by 2002:a17:907:c30d:b0:a30:a5ef:aa1 with SMTP id tl13-20020a170907c30d00b00a30a5ef0aa1mr290689ejc.13.1705962144762; Mon, 22 Jan 2024 14:22:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705962144; cv=pass; d=google.com; s=arc-20160816; b=lcfzjh4lOx6xghCCS/xffHukKsnbs0gGkL01JO6zFBbTV01osN8mn1q630MVCXCocG 0GRzMedDrj4o1zkDWzQWo0NiJ9A95aJJmtlW6d1Qk27nr+Hk6m39toNq9cbBwSWLhQY7 Qx7k2kmIeyE3QCsPWD/IudUJEW0cDvh03t7VjxxmqC3NZcbhG+0VDfL7PHx2ZuoTN2cj byvg9GAJvZS4V8kgjTVkB31yRUvvy4BbIqHLfMJvYBU7ZWxbZW2w6ms4pMF6G4cLbBcb z1xB4lEAMlRCd6vqvBK2pKyGM+TRrz+P2XihQBO8qFXyqYSIzz97QdPcb7gWXkG3Msnl AtpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hwJUOY/XJ9jOQCsCuntYdCXFmhVN4+GFCgtGjLa12Sk=; fh=rlwn4pxNjzZxzAe0OFpEm5XldgGOhioyoE/W5GSrSmE=; b=kO7WUYgBr6zCdAx6Bz3L/MEMQX6Hkyf966MIZZGc3DlRHKoFfZHUKBzxxfuqaPGj1j uIs7iOV+lIIMBk++RBb93ZqRcTFkErvXPE2iEUYbINnthnfGnrPq33e18746GYO/Gtvw BxipITLAyZV4oJHJpyHHR3r3ykkiiLX14eVVMnmSFct77J4K8BMUNEr20iKpNz4UeE3l BMgMRTMrG9IceG16OyWXyesWcUTTl1RgJwQ9Vj64kCp+WgzZH9RPR+VuEhq6FIefyfX/ Shwzd6L2dWUEJBAvK/Cgv7DueJDNslpk81o/qcEAs3A6Jb64hHq9oic07aBYWdQAMPGA kp/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KeP6ojzk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bn13-20020a170906c0cd00b00a1da6786698si10948532ejb.930.2024.01.22.14.22.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 14:22:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KeP6ojzk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 805231F26F16 for ; Mon, 22 Jan 2024 22:22:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0BDF495C8; Mon, 22 Jan 2024 22:22:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KeP6ojzk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08669495C0 for ; Mon, 22 Jan 2024 22:22:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705962137; cv=none; b=RTcNcz73uJ5/nG4Vd8cFWHXEfUmQgFdaCSXRODn6MXmhCwyhxW33SgdWmcgiPcF62nGnsD+5sB2ESVX1+O6NH4BwDTXOWjVxchoRX9n6GnGFvKE4r+NMNdi1HwdKAbigUTzjd0ZIVTFL5snxHvN4bHr8dDcxFIbzN9rVTTzAchg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705962137; c=relaxed/simple; bh=d/fxVaGOVO5QVu91c1mmmWvSIRLFiaURtHGFApvsPj0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rw7o4cK/YN1a3BpLD37OfyjvCzfewrjDEi51ne89MV503HYK93cGFIsRxnVqiuT3AcPriiKWQdiUN0ErzAZSvbg5zCbCIqOKguG6bqXQFU1fXUbfR71glq6A47B3F04G8rweFzyLZDWIXcF+qdCeOSX72VnZ40hOwO9ttjG19bI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KeP6ojzk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC8FC43390; Mon, 22 Jan 2024 22:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705962136; bh=d/fxVaGOVO5QVu91c1mmmWvSIRLFiaURtHGFApvsPj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KeP6ojzkPZbUSVxkh/i+B/wvV+O+aLt1a0etxXSJ8LWMkBIdBLYELD4JncziA3TRo hAd4lWovaEF1xU14/rU9Z8yA9l/2H9kIeYZ6ZB9bq3tC77qAaBU0QzYRgBPnvwOdK2 GQcPK9oddstNZmW1jGeEQFu/dnGz3hA7cYwo8E9NiIOKIhy09/d/Y/iUG60812TE0c j320bYaCfQi5r3SfNuoTF5Ub8pDgVqwwSnp+3ESr1YPzo2ZAw5QqGiwTvPq41JnOFZ gpxwrxKus07NLw0P4IToAJlHdXfbzpSXnmKFS61egIy5TaXcaZ8nowddd7+QsP0kRu GRa7BLaH20smw== Date: Mon, 22 Jan 2024 23:22:13 +0100 From: Frederic Weisbecker 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" , Rik van Riel , Steven Rostedt , Sebastian Siewior , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Srinivas Pandruvada , K Prateek Nayak Subject: Re: [PATCH v10 04/20] timers: Optimization for timer_base_try_to_set_idle() Message-ID: References: <20240115143743.27827-1-anna-maria@linutronix.de> <20240115143743.27827-5-anna-maria@linutronix.de> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240115143743.27827-5-anna-maria@linutronix.de> Le Mon, Jan 15, 2024 at 03:37:27PM +0100, Anna-Maria Behnsen a ?crit : > When tick is stopped also the timer base is_idle flag is set. When > reentering the timer_base_try_to_set_idle() with the tick stopped, there is > no need to check whether the timer base needs to be set idle again. When a > timer was enqueued in the meantime, this is already handled by the > tick_nohz_next_event() call which was executed before > tick_nohz_stop_tick(). > > Signed-off-by: Anna-Maria Behnsen Reviewed-by: Frederic Weisbecker