summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/mach/time.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 16:03:08 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 16:03:08 -0700
commit4208ff04a2dea2f55111a6cdc7e21f6ec3aef29f (patch)
tree4a3b64a319ff55081b9c5447587930cbf698780b /include/asm-arm/mach/time.h
parent43df5eac00734436e2bc5a5c11488b1a7accecc7 (diff)
parent8749af68216e1ebf6460992fce548f400ecf63a4 (diff)
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Diffstat (limited to 'include/asm-arm/mach/time.h')
-rw-r--r--include/asm-arm/mach/time.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-arm/mach/time.h b/include/asm-arm/mach/time.h
index 5cf4fd659fd5..047980ad18d1 100644
--- a/include/asm-arm/mach/time.h
+++ b/include/asm-arm/mach/time.h
@@ -39,8 +39,29 @@ struct sys_timer {
void (*suspend)(void);
void (*resume)(void);
unsigned long (*offset)(void);
+
+#ifdef CONFIG_NO_IDLE_HZ
+ struct dyn_tick_timer *dyn_tick;
+#endif
+};
+
+#ifdef CONFIG_NO_IDLE_HZ
+
+#define DYN_TICK_SKIPPING (1 << 2)
+#define DYN_TICK_ENABLED (1 << 1)
+#define DYN_TICK_SUITABLE (1 << 0)
+
+struct dyn_tick_timer {
+ unsigned int state; /* Current state */
+ int (*enable)(void); /* Enables dynamic tick */
+ int (*disable)(void); /* Disables dynamic tick */
+ void (*reprogram)(unsigned long); /* Reprograms the timer */
+ int (*handler)(int, void *, struct pt_regs *);
};
+void timer_dyn_reprogram(void);
+#endif
+
extern struct sys_timer *system_timer;
extern void timer_tick(struct pt_regs *);