Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / include / linux / work-simple.h
1 #ifndef _LINUX_SWORK_H
2 #define _LINUX_SWORK_H
3
4 #include <linux/list.h>
5
6 struct swork_event {
7         struct list_head item;
8         unsigned long flags;
9         void (*func)(struct swork_event *);
10 };
11
12 static inline void INIT_SWORK(struct swork_event *event,
13                               void (*func)(struct swork_event *))
14 {
15         event->flags = 0;
16         event->func = func;
17 }
18
19 bool swork_queue(struct swork_event *sev);
20
21 int swork_get(void);
22 void swork_put(void);
23
24 #endif /* _LINUX_SWORK_H */