Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757257Ab1FFUaE (ORCPT ); Mon, 6 Jun 2011 16:30:04 -0400 Received: from usmamail.tilera.com ([206.83.70.75]:30428 "EHLO USMAMAIL.TILERA.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753834Ab1FFUaD (ORCPT ); Mon, 6 Jun 2011 16:30:03 -0400 Message-ID: <4DED38C9.1080401@tilera.com> Date: Mon, 6 Jun 2011 16:30:01 -0400 From: Chris Metcalf User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Frederic Weisbecker CC: LKML , "Paul E. McKenney" , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" , Russell King , Hans-Christian Egtvedt , Mike Frysinger , Ralf Baechle , Paul Mackerras , Heiko Carstens , Paul Mundt , David Miller , Guan Xuetao Subject: Re: [PATCH 2/4 v2] nohz: Split extended quiescent state handling from nohz switch References: <1307329858-14999-4-git-send-email-fweisbec@gmail.com> <1307330437-15372-1-git-send-email-fweisbec@gmail.com> In-Reply-To: <1307330437-15372-1-git-send-email-fweisbec@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 34 On 6/5/2011 11:20 PM, Frederic Weisbecker wrote: > It is assumed that rcu won't be used once we switch to tickless > mode and until we restart the tick. However this is not always > true, as in x86-64 where we dereference the idle notifiers after > the tick is stopped. > > To prepare for fixing this, split the tickless mode switching and > RCU extended quiescent state logics. > Make tick_nohz_stop/restart_sched_tick() RCU agnostic but provide > a new pair of APIs tick_nohz_enter/exit_idle() that keep the > old behaviour by handling both the nohz mode and RCU extended > quiescent states, then convert every archs to use these. > > Archs that want to switch to extended QS to some custom points > can do it later by using tick_nohz_stop_sched_tick() and > rcu_enter_nohz() seperately. > > v2: Remove rcu_exit_nohz() from tick_nohz_restart_sched_tick() > > [...] > arch/tile/kernel/process.c | 4 +- Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- 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/