mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Frederic Weisbecker <fweisbec@gmail.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-kernel@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] timer: nohz: don't disable the timer if we don't have irqwork interrupt
Date: Tue, 7 Jul 2015 16:16:35 +0200	[thread overview]
Message-ID: <20150707141633.GB20498@lerouge> (raw)
In-Reply-To: <1435068463-10091-1-git-send-email-bigeasy@linutronix.de>

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 <bigeasy@linutronix.de>

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
> 

  reply	other threads:[~2015-07-07 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23 14:07 Sebastian Andrzej Siewior
2015-07-07 14:16 ` Frederic Weisbecker [this message]
2015-07-07 14:20   ` Sebastian Andrzej Siewior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150707141633.GB20498@lerouge \
    --to=fweisbec@gmail.com \
    --cc=bigeasy@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®