diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-02-09 17:46:35 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-02-09 17:46:35 +0000 |
| commit | 062d8ff5a0138cf399be8b11621279dfdf961c89 (patch) | |
| tree | d7c3126aa03554e99e3b7fd7bd4461084b0ca3bb /sys/kern/subr_taskqueue.c | |
| parent | b4151f7101f86111f11644ffa24136d088f9ecd5 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_taskqueue.c')
| -rw-r--r-- | sys/kern/subr_taskqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 5afda766d744..30d834ab25d4 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -40,7 +40,7 @@ static MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues"); static STAILQ_HEAD(taskqueue_list, taskqueue) taskqueue_queues; -static struct intrhand *taskqueue_ih; +static void *taskqueue_ih; struct taskqueue { STAILQ_ENTRY(taskqueue) tq_link; @@ -193,7 +193,7 @@ taskqueue_run(struct taskqueue *queue) static void taskqueue_swi_enqueue(void *context) { - sched_swi(taskqueue_ih, SWI_NOSWITCH); + swi_sched(taskqueue_ih, SWI_NOSWITCH); } static void @@ -203,5 +203,5 @@ taskqueue_swi_run(void *dummy) } TASKQUEUE_DEFINE(swi, taskqueue_swi_enqueue, 0, - taskqueue_ih = sinthand_add("task queue", NULL, - taskqueue_swi_run, NULL, SWI_TQ, 0)); + swi_add(NULL, "task queue", taskqueue_swi_run, NULL, SWI_TQ, 0, + &taskqueue_ih)); |
