]> git.proxmox.com Git - mirror_spl.git/blob - include/linux-timer.h
Initial commit. All spl source written up to this point wrapped
[mirror_spl.git] / include / linux-timer.h
1 #ifndef _SYS_LINUX_TIMER_H
2 #define _SYS_LINUX_TIMER_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <linux/sched.h>
9 #include <linux/timer.h>
10
11 #define lbolt ((clock_t)jiffies)
12 #define lbolt64 ((int64_t)get_jiffies_64())
13
14 #define delay(ticks) schedule_timeout((long timeout)(ticks))
15
16 #ifdef __cplusplus
17 }
18 #endif
19
20 #endif /* _SYS_LINUX_TIMER_H */
21