Revert r256587.
Requested by: zec
This commit is contained in:
parent
70d0c3d521
commit
96de336a8a
@ -49,9 +49,6 @@ struct task {
|
||||
u_short ta_priority; /* (c) Priority */
|
||||
task_fn_t *ta_func; /* (c) task handler */
|
||||
void *ta_context; /* (c) argument for handler */
|
||||
#ifdef VIMAGE
|
||||
struct vnet *ta_vnet; /* (c) vnet context */
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* !_SYS__TASK_H_ */
|
||||
|
@ -36,9 +36,6 @@
|
||||
#include <sys/queue.h>
|
||||
#include <sys/_task.h>
|
||||
#include <sys/_callout.h>
|
||||
#ifdef VIMAGE
|
||||
#include <net/vnet.h>
|
||||
#endif
|
||||
|
||||
struct taskqueue;
|
||||
struct thread;
|
||||
@ -108,22 +105,12 @@ void taskqueue_thread_enqueue(void *context);
|
||||
/*
|
||||
* Initialise a task structure.
|
||||
*/
|
||||
#ifdef VIMAGE
|
||||
#define TASK_INIT(task, priority, func, context) do { \
|
||||
(task)->ta_pending = 0; \
|
||||
(task)->ta_priority = (priority); \
|
||||
(task)->ta_func = (func); \
|
||||
(task)->ta_context = (context); \
|
||||
(task)->ta_vnet = curvnet; \
|
||||
} while (0)
|
||||
#else /* !VIMAGE */
|
||||
#define TASK_INIT(task, priority, func, context) do { \
|
||||
(task)->ta_pending = 0; \
|
||||
(task)->ta_priority = (priority); \
|
||||
(task)->ta_func = (func); \
|
||||
(task)->ta_context = (context); \
|
||||
} while (0)
|
||||
#endif /* !VIMAGE */
|
||||
|
||||
void _timeout_task_init(struct taskqueue *queue,
|
||||
struct timeout_task *timeout_task, int priority, task_fn_t func,
|
||||
|
Loading…
Reference in New Issue
Block a user