From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760327Ab2EWOW1 (ORCPT ); Wed, 23 May 2012 10:22:27 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:64465 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915Ab2EWOWZ (ORCPT ); Wed, 23 May 2012 10:22:25 -0400 Date: Wed, 23 May 2012 16:22:17 +0200 From: Frederic Weisbecker To: "Paul E. McKenney" Cc: LKML , linaro-sched-sig@lists.linaro.org, Alessio Igor Bogani , Andrew Morton , Avi Kivity , Chris Metcalf , Christoph Lameter , Daniel Lezcano , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , Ingo Molnar , Kevin Hilman , Max Krasnyansky , Peter Zijlstra , Stephen Hemminger , Steven Rostedt , Sven-Thorsten Dietrich , Thomas Gleixner Subject: Re: [PATCH 37/41] rcu: New rcu_user_enter() and rcu_user_exit() APIs Message-ID: <20120523142213.GF1663@somewhere> References: <1335830115-14335-1-git-send-email-fweisbec@gmail.com> <1335830115-14335-38-git-send-email-fweisbec@gmail.com> <20120522182306.GD8087@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120522182306.GD8087@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2012 at 11:23:06AM -0700, Paul E. McKenney wrote: > On Tue, May 01, 2012 at 01:55:11AM +0200, Frederic Weisbecker wrote: > > These two APIs are provided to help the implementation > > of an adaptive tickless kernel (cf: nohz cpusets). We need > > to run into RCU extended quiescent state when we are in > > userland so that a tickless CPU is not involved in the > > global RCU state machine and can shutdown its tick safely. > > > > These APIs are called from syscall and exception entry/exit > > points and can't be called from interrupt. > > > > They are essentially the same than rcu_idle_enter() and > > rcu_idle_exit() minus the checks that ensure the CPU is > > running the idle task. > > This looks reasonably sane. There are a few nits like missing comment > headers for functions and the need for tracing, but I can handle that > when I pull it in. I am happy to do that pretty much any time, but not > before the API stabilizes. ;-) > > So let me know when it is ready for -rcu. Ok. So would you be willing to host this specific part in -rcu? I don't know if these APIs are welcome upstream if they have no upstream users yet. OTOH it would be easier for me if I don't need to include these patches in my endless rebases. Another solution is to host that in some seperate tree. In yours or in -tip. Ingo seemed to be willing to host this patchset. What do you think? I believe I need to rebase against your latest changes though.