Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752235AbbKPXQA (ORCPT ); Mon, 16 Nov 2015 18:16:00 -0500 Received: from mga01.intel.com ([192.55.52.88]:32726 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751261AbbKPXP6 (ORCPT ); Mon, 16 Nov 2015 18:15:58 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,304,1444719600"; d="scan'208";a="687023527" Date: Mon, 16 Nov 2015 15:15:03 -0800 From: Jacob Pan To: paulmck@linux.vnet.ibm.com Cc: Thomas Gleixner , Peter Zijlstra , Ingo Molnar , John Stultz , LKML , Arjan van de Ven , Srinivas Pandruvada , Len Brown , Rafael Wysocki , Eduardo Valentin , Paul Turner , Josh Triplett , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 2/4] timer: relax tick stop in idle entry Message-ID: <20151116151503.47cbd4cf@icelake> In-Reply-To: <20151116223117.GK5184@linux.vnet.ibm.com> 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> <20151116223117.GK5184@linux.vnet.ibm.com> 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: 1173 Lines: 23 On Mon, 16 Nov 2015 14:31:17 -0800 "Paul E. McKenney" wrote: > > Either one works but my concern is that users may not realize the > > intricate CONFIG_ options and how they translate into energy > > savings. Consulted with Josh, it seems we could add a check here to > > recognize the forced idle state and relax rcu_needs_cpu() to return > > false even it has callbacks. Since we are blocking everybody for a > > short time (5 ticks default). It should not impact synchronize and > > kfree rcu. > > Or we could just set things up so that whatever Kconfig you are using > to enable this state causes CONFIG_RCU_NOCB_CPU_ALL to also be > enabled. Or that causes CONFIG_RCU_FAST_NO_HZ to also be enabled, if > that works better for you. That would be great, we can work this out once the patch is finalized. This is not a hard dependency in that it only affects the efficiency of idle injection. -- 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/