Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1592713pxu; Fri, 27 Nov 2020 10:29:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7nTFt7AJU3ZQNF5HHUE3PU6cksUUgLcpU+3s4aqa8EsbUM3yrxH2oeuLNS9oAhnBqVXue X-Received: by 2002:a17:906:2e82:: with SMTP id o2mr9424272eji.106.1606501775791; Fri, 27 Nov 2020 10:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606501775; cv=none; d=google.com; s=arc-20160816; b=RSm40hNbCThPDRX7zptfgO8xXakU7fqLuC5ylWfEr1pfVymVc2Lo08wK22glyJEZHK NSnuY3R3AMNvkZI0SkdPVmUjt+Neqy55HHjDoldhzyDSc3kuvAK3KeNH0rmhKM4strVh lVKPXdWmwrrFgPBPW6THr9So86sekvcPJqdMstnyB4AOIFLMZIeNvz5kFuBkEgVwMqoB DB/W0VMn9dwXDVVhur3AuA7KF/BQdRdYYjwyyhOdfxURx3UzodG+FlVolyvGURc9/VgY 5RJcC1NUOpNsPs0iBGS6Ttt9HdzstA8gvlHgM3xaws/BFOf3x9S4gFbS3ODtIDv71LrU TRKw== 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:date:dkim-signature; bh=UfjD2sfeKXiOYTiV+g7uVFkXgtTd/acrpwl0QKkGVao=; b=KsZaYmwlmMJWj2jkMslLITnm7iXrobAN/t6cohKp6+8FqpP2nErk2ljUy5eJ72VHQi dRpdsX1NcZyqfmBZLCP9R2IAwL+DswAryTbOIfVWy8dZ79PEC5u5peOQlquy80PquYT1 hqfLN65hthziCk2tthXp/cS/pvMwBR3ALfxCMftsmGypJUylrx2sFJKXWHh+7YytUjhn pJ16M1SbKWwPffQ/K8GpECy8ePTWlmXmORgjSjKqusaXuSex1XUmO4djP5ocABDsc0j8 yTrxqaleLf0yhRkM5t9xBN6MGqJgY5GD8ViMhvkrqJG4mmXBl3+RD/N/GEm3st+tjEnq AtOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cy4Uwpyk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si5119340ejg.324.2020.11.27.10.29.13; Fri, 27 Nov 2020 10:29:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cy4Uwpyk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727518AbgK0MPq (ORCPT + 99 others); Fri, 27 Nov 2020 07:15:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:42562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727355AbgK0MPp (ORCPT ); Fri, 27 Nov 2020 07:15:45 -0500 Received: from localhost (fer13-h02-176-173-104-11.dsl.sta.abo.bbox.fr [176.173.104.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCAED208D5; Fri, 27 Nov 2020 12:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606479345; bh=dErJubk9hpLskPjOWd8LYj3gt6yMBQuIgVy955premM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cy4UwpyktUZmPl28JtQsuhIAD3SIchLMhehQRht8huK4QAV0YuVEbQFnzJiKJq6o/ EH4HW6yoJgQN3nslde4XvM+R5Ffybd6Vb/nfKIRnDp0yZ1q9pRKqar/ZKGBR6O7qth /EhVyPlby5jLih9k12sHN+xBwNtrAfJ9mrELt2T0= Date: Fri, 27 Nov 2020 13:15:42 +0100 From: Frederic Weisbecker To: Yunfeng Ye Cc: fweisbec@gmail.com, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, Shiyuan Hu , Hewenliang Subject: Re: nohz: Update tick instead of restarting tick in tick_nohz_idle_exit() Message-ID: <20201127121542.GA109224@lothringen> References: <66014fea-7b84-358b-137d-d15190241528@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66014fea-7b84-358b-137d-d15190241528@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 09:22:08PM +0800, Yunfeng Ye wrote: > In realtime scenarios, the "nohz_full" parameter is configured. Tick > interference is not expected when there is only one realtime thread. > But when the idle thread is switched to the realtime thread, the tick > timer is restarted always. > > So on the nohz full mode, it is unnecessary to restart the tick timer > when there is only one realtime thread. Adding can_stop_full_tick() > before restarting the tick, if it return true, keep tick stopped. > > Signed-off-by: Yunfeng Ye We can indeed stop the tick and avoid it to be re-armed needlessly at this point. I'm taking your patch, I may just edit it a little and resend it. Thanks!