Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1235743lqj; Mon, 3 Jun 2024 14:50:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4rL/lEpsykDIUhG/8bv6QqnPMOomq4VBtxefzZseo22JPYee0IH/HMYTGNk4FA1TSPcito2eOQMCFHTTLPfItU6yLQUPu2kDOkSjUYg== X-Google-Smtp-Source: AGHT+IGcs5arWEjmz9UBeTb10Y4M2pME1ayVQbaj2JLVky0N/P+BUOP7yWitD0uofehN5GoscxS9 X-Received: by 2002:a17:903:234a:b0:1f6:6a94:76be with SMTP id d9443c01a7336-1f66a9478d2mr56155735ad.46.1717451433266; Mon, 03 Jun 2024 14:50:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717451433; cv=pass; d=google.com; s=arc-20160816; b=vFV0Wf2Y7G1qEUzBFgjOdo9m0/03ez59cZnjRncO0icnfBfVj+Txt8NQ32t/juhZ9a 5rz2pGGpOfSZQScBiUB6X1IXb9ldJTul/jOBp8mdB9qZa0ZNd+UvhQZlr6TJphNUiQj6 QM2nXRyQRNO7JudtcHCEh8clvOjyX93sc+IYEQtTcAJyIi6DlGBK7pTYY8FB1E4Y3AYa j1n1efIIvO7h2JhmZnSzMsJmM94+usUmvgHucBudO4ft2hPyB/xXuikq17LznKYH4JZy tEjG/uR5t/5IpejFPePMEx5cWplgjX6jDc+jX4uwGoK0k7oNpNKqcdqEOBDPHtmDTLgv /xZw== 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=SE9CP4TGslD+91utBW3JCDb0yi8cr9lPZXkWxf1Y9H0=; fh=R5u18lFiCClNcqN5uYyUaev5nfkE683ziHRHr7rxFjQ=; b=fzdDNQ8i7qo8TlXIWaVz5s2IBclGSCEUmB3vw7SVnGENHYVwj6bW/MlEyMFGNB15EA ySUNdgr3e7SD40QfIxw4p4+kqpLD9DANFkgwjpggtrleK2Dn1cDBli/rKk6LIJDUrGMM 0Npz4AcgTrDNar16lF8KK6pafJS3JuzKGMm7Kwgj2FzkLUZirVTwwJ9YdJA0MfEpdVKg YxemB6GgNuu8YSU84mkDqNacmMBo4tcoT7gEC1wWwgjqUKLwfdIcKgRTvrKTYcQNfWKS f3g8Vf5vu3fTbWy4/Cp1CUwOetPkxNN7tMhV0hKOpm5nqMpNgTRI0EawPgUg6bi3K4jW 9o9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EU5xtlkY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f655662642si47132215ad.402.2024.06.03.14.50.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 14:50:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EU5xtlkY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199740-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 468A9B25754 for ; Mon, 3 Jun 2024 21:44:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CDF513C811; Mon, 3 Jun 2024 21:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EU5xtlkY" 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 C739B4F1EE for ; Mon, 3 Jun 2024 21:44:12 +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=1717451052; cv=none; b=LDfz0Bx29AhzPHOW8Mh7Pc0jDgfeBVzASUBgJ54+jNVbPUVdzdRmx2/L+5rlvW+GfNckcSxR7Fbiidk+0bsZrInwaJ6cX8v79wBVnZXH5aaNWKj4nP1gDMtVLrTMyF7LZT2QKc5NMhuWmWJ/NwcPoUgBEA3Z0VAbun8vEXeQRTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717451052; c=relaxed/simple; bh=1wWn3DeKnFYXq+bWI3B8dKrzW7BjjRMkl5tKJbI1vmY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=miuYNWtLUozcmUowVWeAjmQ9Q4mVKbCsw1qoCI7bftpiwAhPb8hISZCotiMeWUNR/ikjs43chy2R12PKNHkzLZpGGuEcS7fbgGQNHSVzpnl0TDyjBj3G82MubDuPP66kpzim33byXp4PFgHgNtyUwJ1rE7g9TqBHdtOnAIyfLqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EU5xtlkY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC809C2BD10; Mon, 3 Jun 2024 21:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717451052; bh=1wWn3DeKnFYXq+bWI3B8dKrzW7BjjRMkl5tKJbI1vmY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EU5xtlkYxJJ/N4iCX4sVyeJ8MBymKwTe64Ne2LXZ0OqsC0Gfhr4GcNZ1I4fnPcGsw TnV4q4yr1vY7iwqGfM4frQocC5j+jDYbOQ6ilYXYh4EJQ6nsJ9GGITnacqvDsKRBIN 7yI8alDxcXU4cLYyn833iYUZYgYNTb2iCiZHABrCt9XE+s+4K1sWqeP9PqoF8lCXSz ycOsihdndBd7cYgU8exAVotkcdyh3mEFNuZoIIafbVN2z6NuipMscLtubdIitM9JFw PcD82GCukN/un6qZQNnrZj9VmZoLYtsDPnDzyuS2iU9IP/7ymqTXzkrxg79QZ8uHH/ wxknuvFAPuBQg== Date: Mon, 3 Jun 2024 23:44:09 +0200 From: Frederic Weisbecker To: Oleg Nesterov Cc: Ingo Molnar , Nicholas Piggin , Peter Zijlstra , Phil Auld , Thomas Gleixner , Chris von Recklinghausen , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] tick/nohz_full: turn tick_do_timer_boot_cpu into boot_cpu_is_nohz_full Message-ID: References: <20240522151742.GA10400@redhat.com> <20240528122019.GA28794@redhat.com> <20240530124032.GA26833@redhat.com> <20240603153557.GA8311@redhat.com> 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: <20240603153557.GA8311@redhat.com> Le Mon, Jun 03, 2024 at 05:35:57PM +0200, Oleg Nesterov a ?crit : > We don't need to record the cpu number of the nohz_full boot CPU, a simple > boolean is enough. We could even kill it, the "else if" branch could check > tick_nohz_full_cpu(tick_do_timer_cpu) && !tick_nohz_full_cpu(cpu). > > Signed-off-by: Oleg Nesterov Acked-by: Frederic Weisbecker