Thomas Gleixner | 906568c | 2007-02-16 01:28:01 -0800 | [diff] [blame^] | 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 |