summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_taskqueue.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-02-09 17:46:35 +0000
committerjhb <jhb@FreeBSD.org>2001-02-09 17:46:35 +0000
commitb30904d8405e0fc49c1043759a015628e89a2a2c (patch)
treed044a3ac558b84ef586376cd72c3d4f76db77509 /sys/kern/subr_taskqueue.c
parent1b1c815619bd7dd106cc79a9144b32c38284b829 (diff)
downloadFreeBSD-src-b30904d8405e0fc49c1043759a015628e89a2a2c.zip
FreeBSD-src-b30904d8405e0fc49c1043759a015628e89a2a2c.tar.gz
- Catch up to the new swi API changes:
- Use swi_* function names. - Use void * to hold cookies to handlers instead of struct intrhand *. - In sio.c, use 'driver_name' instead of "sio" as the name of the driver lock to minimize diffs with cy(4).
Diffstat (limited to 'sys/kern/subr_taskqueue.c')
-rw-r--r--sys/kern/subr_taskqueue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c
index 5afda76..30d834a 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));
OpenPOWER on IntegriCloud