From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Paul E. McKenney" Subject: Re: [PATCH RFC idle 2/3] arm: Avoid invoking RCU when CPU is idle Date: Thu, 2 Feb 2012 15:27:36 -0800 Message-ID: <20120202232736.GL2518@linux.vnet.ibm.com> References: <1328143404-11038-2-git-send-email-paulmck@linux.vnet.ibm.com> <20120202044439.GD2435@linux.vnet.ibm.com> <20120202174337.GS2518@linux.vnet.ibm.com> <20120202190708.GE2518@linux.vnet.ibm.com> <87obtgc1xx.fsf@ti.com> <4F2B1307.5010207@gmail.com> <1328223819.5882.133.camel@gandalf.stny.rr.com> Reply-To: paulmck@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1328223819.5882.133.camel@gandalf.stny.rr.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Steven Rostedt Cc: Nicolas Pitre , mathieu.desnoyers@polymtl.ca, peterz@infradead.org, fweisbec@gmail.com, Nicolas Ferre , dhowells@redhat.com, Lennert Buytenhek , Kevin Hilman , Kukjin Kim , Russell King , eric.dumazet@gmail.com, "Paul E. McKenney" , Magnus Damm , Tony Lindgren , dipankar@in.ibm.com, darren@dvhart.com, mingo@elte.hu, Jean-Christophe Plagniol-Villard , Len Brown , Amit Kucheria , patches@linaro.org, Will Deacon , josh@joshtriplett.org, Sekhar Nori , niv@us.ibm.com, linux-samsung-soc@vger.kernel.org, Barry Song , tglx@linutronix.de, linux-omap@v List-Id: linux-omap@vger.kernel.org On Thu, Feb 02, 2012 at 06:03:39PM -0500, Steven Rostedt wrote: [ . . . ] > Anyway, one answer is (and I was talking with Paul about this on IRC) is > that we can create a special "TRACE_EVENT_IDLE()" that will explicitly > call "rcu_idle_exit/enter()" as it expects to be called with it off. > > This should solve most issues I believe. You OK with something like RCU_NONIDLE() rather than RCU_EVENT_IDLE()? I have this funny feeling that tracing won't be the only thing using RCU from idle. :-/ Something like this, perhaps? #define RCU_NONIDLE(a) \ do { \ rcu_idle_exit(); \ do { a; } while (0); \ rcu_idle_enter(); \ } Thanx, Paul