summaryrefslogtreecommitdiff
path: root/include/linux/tick.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r--include/linux/tick.h31
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 @@
+/* linux/include/linux/tick.h
+ *
+ * This file contains the structure definitions for tick related functions
+ *
+ */
+#ifndef _LINUX_TICK_H
+#define _LINUX_TICK_H
+
+#include <linux/clockchips.h>
+
+#ifdef CONFIG_GENERIC_CLOCKEVENTS
+
+enum tick_device_mode {
+ TICKDEV_MODE_PERIODIC,
+ TICKDEV_MODE_ONESHOT,
+};
+
+struct tick_device {
+ struct clock_event_device *evtdev;
+ enum tick_device_mode mode;
+};
+
+extern void __init tick_init(void);
+
+#else
+
+static inline void tick_init(void) { }
+
+#endif
+
+#endif