[patch 27/50] genirq: ARM: dyntick quirk

From: Ingo Molnar
Date: Tue May 16 2006 - 20:17:29 EST


From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

ARM dyntick quirk.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
kernel/irq/handle.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

Index: linux-genirq.q/kernel/irq/handle.c
===================================================================
--- linux-genirq.q.orig/kernel/irq/handle.c
+++ linux-genirq.q/kernel/irq/handle.c
@@ -16,6 +16,10 @@
#include <linux/interrupt.h>
#include <linux/kernel_stat.h>

+#if defined(CONFIG_NO_IDLE_HZ) && defined(CONFIG_ARM)
+#include <asm/dyntick.h>
+#endif
+
#include "internals.h"

/**
@@ -105,6 +109,15 @@ int handle_IRQ_event(unsigned int irq, s
{
int ret, retval = 0, status = 0;

+#if defined(CONFIG_NO_IDLE_HZ) && defined(CONFIG_ARM)
+ if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) {
+ write_seqlock(&xtime_lock);
+ if (system_timer->dyn_tick->state & DYN_TICK_ENABLED)
+ system_timer->dyn_tick->handler(irq, 0, regs);
+ write_sequnlock(&xtime_lock);
+ }
+#endif
+
if (!(action->flags & SA_INTERRUPT))
local_irq_enable();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/