2008-02-28 03:52:31 +03:00
|
|
|
#ifndef _SPL_TIMER_H
|
|
|
|
#define _SPL_TIMER_H
|
2008-02-26 23:36:04 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-02-27 22:09:51 +03:00
|
|
|
#include <linux/module.h>
|
2008-02-26 23:36:04 +03:00
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/timer.h>
|
|
|
|
|
|
|
|
#define lbolt ((clock_t)jiffies)
|
|
|
|
#define lbolt64 ((int64_t)get_jiffies_64())
|
|
|
|
|
2008-03-07 03:28:32 +03:00
|
|
|
#define delay(ticks) schedule_timeout((long)(ticks))
|
2008-02-26 23:36:04 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2008-02-28 03:52:31 +03:00
|
|
|
#endif /* _SPL_TIMER_H */
|
2008-02-26 23:36:04 +03:00
|
|
|
|