ddk: update
git-svn-id: svn://kolibrios.org@4125 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -273,10 +273,17 @@ struct timer_list {
|
||||
|
||||
void (*function)(unsigned long);
|
||||
unsigned long data;
|
||||
|
||||
// struct tvec_base *base;
|
||||
u32 handle;
|
||||
};
|
||||
|
||||
#define setup_timer(_timer, _fn, _data) \
|
||||
do { \
|
||||
(_timer)->function = (_fn); \
|
||||
(_timer)->data = (_data); \
|
||||
(_timer)->handle = 0; \
|
||||
} while (0)
|
||||
|
||||
|
||||
struct timespec {
|
||||
long tv_sec; /* seconds */
|
||||
long tv_nsec; /* nanoseconds */
|
||||
|
@@ -61,6 +61,7 @@ struct workqueue_struct *alloc_workqueue_key(const char *fmt,
|
||||
#define alloc_ordered_workqueue(fmt, flags, args...) \
|
||||
alloc_workqueue(fmt, WQ_UNBOUND | (flags), 1, ##args)
|
||||
|
||||
bool queue_work(struct workqueue_struct *wq, struct work_struct *work);
|
||||
int queue_delayed_work(struct workqueue_struct *wq,
|
||||
struct delayed_work *dwork, unsigned long delay);
|
||||
|
||||
@@ -80,6 +81,10 @@ bool schedule_delayed_work(struct delayed_work *dwork, unsigned long delay);
|
||||
(_work)->work.func = _func; \
|
||||
} while (0)
|
||||
|
||||
static inline bool schedule_work(struct work_struct *work)
|
||||
{
|
||||
return queue_work(system_wq, work);
|
||||
}
|
||||
|
||||
|
||||
#endif /* _LINUX_WORKQUEUE_H */
|
||||
|
Reference in New Issue
Block a user