Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934882AbbKSXmV (ORCPT ); Thu, 19 Nov 2015 18:42:21 -0500 Received: from mga03.intel.com ([134.134.136.65]:36507 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934629AbbKSXmU (ORCPT ); Thu, 19 Nov 2015 18:42:20 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,319,1444719600"; d="scan'208";a="689956948" Date: Thu, 19 Nov 2015 15:41:24 -0800 From: Jacob Pan To: Peter Zijlstra Cc: Thomas Gleixner , 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: <20151119154124.6ffa0cec@icelake> In-Reply-To: <20151119195905.GR3816@twins.programming.kicks-ass.net> 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> <20151116160910.3811c8ca@icelake> <20151119190630.GP3816@twins.programming.kicks-ass.net> <20151119112125.743f12d7@icelake> <20151119195905.GR3816@twins.programming.kicks-ass.net> 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: 1153 Lines: 30 On Thu, 19 Nov 2015 20:59:05 +0100 Peter Zijlstra wrote: > On Thu, Nov 19, 2015 at 11:21:25AM -0800, Jacob Pan wrote: > > On Thu, 19 Nov 2015 20:06:30 +0100 > > Peter Zijlstra wrote: > > > > > Which one? That is, I cannot find a idle_cpu() call from > > > tick_nohz_irq_exit(). > > it is tick_irq_exit(void), i will not call tick_nohz_irq_exit() if > > !idle_cpu() > > Ah, but I think we really only need to test for the idle task there, > the && need_resched() part of that function takes care of the rest. > > Once we have need_resched() set, we'll be on our way to > tick_nohz_idle_exit() to restart the tick again. Tested, it did the trick also. has less impact than changing idle_cpu(). My other point is the callers of idle_cpu() will see it returns false but in forced idle. Can't see anything bad since we skip load balance. Thanks, 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/