Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752830AbbKQAKI (ORCPT ); Mon, 16 Nov 2015 19:10:08 -0500 Received: from mga03.intel.com ([134.134.136.65]:14907 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772AbbKQAKG (ORCPT ); Mon, 16 Nov 2015 19:10:06 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,305,1444719600"; d="scan'208";a="852276025" Date: Mon, 16 Nov 2015 16:09:10 -0800 From: Jacob Pan To: Thomas Gleixner Cc: Peter Zijlstra , Ingo Molnar , John Stultz , LKML , Arjan van de Ven , Srinivas Pandruvada , Len Brown , Rafael Wysocki , Eduardo Valentin , Paul Turner , Josh Triplett , "Paul E. McKenney" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 2/4] timer: relax tick stop in idle entry Message-ID: <20151116160910.3811c8ca@icelake> In-Reply-To: References: <1447444387-23525-1-git-send-email-jacob.jun.pan@linux.intel.com> <1447444387-23525-3-git-send-email-jacob.jun.pan@linux.intel.com> <20151113142438.3144d47d@icelake> <20151116135126.5a50e45d@icelake> Organization: OTC X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 25 On Mon, 16 Nov 2015 23:01:12 +0100 (CET) Thomas Gleixner wrote: > > For the second case, which is much more rare, I think we do have > > next timer exactly one tick away. Just don't know why tick will > > continue into idle loop. > > Well, it should not be hard to figure that out. There are not so many > checks involved when tick_nohz_irq_exit() is called. Thanks for the tip, I found the cause is in int idle_cpu(int cpu) { if (rq->nr_running) return 0; Since we only take into account of cfs_rq runnable taking over cfs_rq->nr_running when forced_idle is set. Jacob -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/