All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] timer: nohz: don't disable the timer if we don't have irqwork interrupt
@ 2015-06-23 14:07 Sebastian Andrzej Siewior
  2015-07-07 14:16 ` Frederic Weisbecker
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-06-23 14:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Frederic Weisbecker, Peter Zijlstra, Thomas Gleixner,
	Sebastian Andrzej Siewior

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>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-07 14:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 14:07 [PATCH] timer: nohz: don't disable the timer if we don't have irqwork interrupt Sebastian Andrzej Siewior
2015-07-07 14:16 ` Frederic Weisbecker
2015-07-07 14:20   ` Sebastian Andrzej Siewior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.