]> git.proxmox.com Git - mirror_spl.git/blob - include/sys/timer.h
7e8c6fd41aa8cb25f3d7045be1b2ba0302673e32
[mirror_spl.git] / include / sys / timer.h
1 #ifndef _SPL_TIMER_H
2 #define _SPL_TIMER_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <linux/module.h>
9 #include <linux/sched.h>
10 #include <linux/timer.h>
11
12 #define lbolt ((clock_t)jiffies)
13 #define lbolt64 ((int64_t)get_jiffies_64())
14
15 #define delay(ticks) schedule_timeout((long)(ticks))
16
17 #ifdef __cplusplus
18 }
19 #endif
20
21 #endif /* _SPL_TIMER_H */
22