Revert r256587.

Requested by:	zec
This commit is contained in:
Gleb Smirnoff 2013-10-18 11:25:08 +00:00
parent 421b30efb5
commit ed3c8ba213
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256729
2 changed files with 0 additions and 16 deletions

View File

@ -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_ */

View File

@ -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,