2008-02-27 00:59:48 +00:00
|
|
|
#ifndef _LINUX_TIMER_H
|
|
|
|
#define _LINUX_TIMER_H
|
2008-02-26 20:36:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/timer.h>
|
|
|
|
|
|
|
|
#define lbolt ((clock_t)jiffies)
|
|
|
|
#define lbolt64 ((int64_t)get_jiffies_64())
|
|
|
|
|
|
|
|
#define delay(ticks) schedule_timeout((long timeout)(ticks))
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2008-02-27 00:59:48 +00:00
|
|
|
#endif /* _LINUX_TIMER_H */
|
2008-02-26 20:36:04 +00:00
|
|
|
|