[PATCH] genirq: ARM dyntick cleanup
[linux-2.6.git] / include / asm-arm / hw_irq.h
index f1a08a5006049eafa5d70b7f2ffc51eb989f8650..275b574fd1a5be077e00b771c57f56ad260c8203 100644 (file)
@@ -6,4 +6,15 @@
 
 #include <asm/mach/irq.h>
 
+#if defined(CONFIG_NO_IDLE_HZ)
+# include <asm/dyntick.h>
+# define handle_dynamic_tick(action)                                   \
+       if (!(action->flags & SA_TIMER) && system_timer->dyn_tick) {    \
+               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
+
 #endif