2008-02-27 19:09:51 +00:00
|
|
|
#ifndef _SOLARIS_TIMER_H
|
|
|
|
#define _SOLARIS_TIMER_H
|
2008-02-26 20:36:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-02-27 19:09:51 +00:00
|
|
|
#include <linux/module.h>
|
2008-02-26 20:36:04 +00:00
|
|
|
#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 19:09:51 +00:00
|
|
|
#endif /* _SOLARIS_TIMER_H */
|
2008-02-26 20:36:04 +00:00
|
|
|
|