mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
32 lines
492 B
C
32 lines
492 B
C
|
/* 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
|