genirq: ARM: dyntick quirk
PATCH 27/50 genirq: ARM: dyntick quirk
From: Thomas Gleixner <[email protected]>
ARM dyntick quirk.
Signed-off-by Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/irq/handle.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
kernel/irq/handle.c +13 -0
@@ -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 ();
Hi!
Quoted 15 lines
From: Thomas Gleixner <[email protected]>
ARM dyntick quirk.
Signed-off-by Thomas Gleixner <[email protected]>Signed-off-by Ingo Molnar <[email protected]>--- kernel/irq/handle.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)Index:
linux-genirq.q/kernel/irq/handle.c
===================================================================
kernel/irq/handle.c line 25
Quoted 10 lines
kernel/irq/handle.c +4
-0@@ -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" /**
Move ifdef into header file or just always include it?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html