From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757330Ab3KMQNA (ORCPT ); Wed, 13 Nov 2013 11:13:00 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:54357 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755706Ab3KMQM6 (ORCPT ); Wed, 13 Nov 2013 11:12:58 -0500 Date: Wed, 13 Nov 2013 11:12:57 -0500 From: Steven Rostedt To: Thomas Gleixner Cc: Matthew Whitehead , john.stultz@linaro.org, linux-kernel@vger.kernel.org, mwhitehe@redhat.com, "Paul E. McKenney" Subject: Re: nohz problem with idle time on old hardware Message-ID: <20131113111257.482c2955@gandalf.local.home> In-Reply-To: References: <20131113113927.GA13875@mwhitehe.csb> <20131113102153.5f10e6b5@gandalf.local.home> <20131113103134.5b8cf02f@gandalf.local.home> <20131113105737.3f7a0b1b@gandalf.local.home> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Nov 2013 17:07:18 +0100 (CET) Thomas Gleixner wrote: > Right. It's telling you if NOHZ is enabled. It's not telling you that > NOHZ is active. Yeah, which makes this code rather silly: in rcu_prepare_for_idle(): /* Handle nohz enablement switches conservatively. */ tne = ACCESS_ONCE(tick_nohz_enabled); if (tne != rdtp->tick_nohz_enabled_snap) { if (rcu_cpu_has_callbacks(cpu, NULL)) invoke_rcu_core(); /* force nohz to see update. */ rdtp->tick_nohz_enabled_snap = tne; return; } -- Steve