Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757664AbbGGOQu (ORCPT ); Tue, 7 Jul 2015 10:16:50 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:35582 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757568AbbGGOQi (ORCPT ); Tue, 7 Jul 2015 10:16:38 -0400 Date: Tue, 7 Jul 2015 16:16:35 +0200 From: Frederic Weisbecker To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH] timer: nohz: don't disable the timer if we don't have irqwork interrupt Message-ID: <20150707141633.GB20498@lerouge> References: <1435068463-10091-1-git-send-email-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435068463-10091-1-git-send-email-bigeasy@linutronix.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1493 Lines: 45 On Tue, Jun 23, 2015 at 04:07:43PM +0200, Sebastian Andrzej Siewior wrote: > The irq work interrupt is optional: If an architecture does not provide > it then the callback will be run from update_process_times(). This does > not work well for nohz_full_kick_work_func() as we learned in commit > 76a33061b932 ("irq_work: Force raised irq work to run on irq work > interrupt"). > > This patch is just a precaution to ensure that that an irq work > interrupt is required and the timer callback is not enough. > > Signed-off-by: Sebastian Andrzej Siewior But we already check that in tick_nohz_init(). Or am I missing something else? Thanks. > --- > kernel/time/tick-sched.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c > index c792429e98c6..d9481bebae22 100644 > --- a/kernel/time/tick-sched.c > +++ b/kernel/time/tick-sched.c > @@ -176,6 +176,11 @@ static bool can_stop_full_tick(void) > return false; > } > > + if (!arch_irq_work_has_interrupt()) { > + trace_tick_stop(0, "missing irq work interrupt\n"); > + return false; > + } > + > /* sched_clock_tick() needs us? */ > #ifdef CONFIG_HAVE_UNSTABLE_SCHED_CLOCK > /* > -- > 2.1.4 > -- 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/