diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2007-02-16 04:28:01 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 11:13:59 -0500 |
| commit | 906568c9c668ff994f4078932ec6ae1e3950d1af (patch) | |
| tree | 825ac33fc61af55a0fe7485a1df681f5a6126d7b /include | |
| parent | d316c57ff6bfad9557462b9100f25c6260d2b774 (diff) | |
[PATCH] tick-management: core functionality
With Ingo Molnar <mingo@elte.hu>
The tick-management code is the first user of the clockevents layer. It takes
clock event devices from the clock events core and uses them to provide the
periodic tick.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/tick.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h new file mode 100644 index 000000000000..e5c0a4e22706 --- /dev/null +++ b/include/linux/tick.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* linux/include/linux/tick.h | ||
| 2 | * | ||
| 3 | * This file contains the structure definitions for tick related functions | ||
| 4 | * | ||
| 5 | */ | ||
| 6 | #ifndef _LINUX_TICK_H | ||
| 7 | #define _LINUX_TICK_H | ||
| 8 | |||
| 9 | #include <linux/clockchips.h> | ||
| 10 | |||
| 11 | #ifdef CONFIG_GENERIC_CLOCKEVENTS | ||
| 12 | |||
| 13 | enum tick_device_mode { | ||
| 14 | TICKDEV_MODE_PERIODIC, | ||
| 15 | TICKDEV_MODE_ONESHOT, | ||
| 16 | }; | ||
| 17 | |||
| 18 | struct tick_device { | ||
| 19 | struct clock_event_device *evtdev; | ||
| 20 | enum tick_device_mode mode; | ||
| 21 | }; | ||
| 22 | |||
| 23 | extern void __init tick_init(void); | ||
| 24 | |||
| 25 | #else | ||
| 26 | |||
| 27 | static inline void tick_init(void) { } | ||
| 28 | |||
| 29 | #endif | ||
| 30 | |||
| 31 | #endif | ||
