diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2006-03-14 23:28:30 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2006-03-14 23:28:30 +0000 |
| commit | 16da188c4b9167c5b407a05d9a640292df2d4314 (patch) | |
| tree | 2f08d2c964e656c4f10421fdbd1eec4383947ff1 /sys/dev | |
| parent | 1572a7ed206e51519cc7efd82828809348ef3c1c (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/Osd/OsdSchedule.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c index f1e84e4de48b..1e8aecab2526 100644 --- a/sys/dev/acpica/Osd/OsdSchedule.c +++ b/sys/dev/acpica/Osd/OsdSchedule.c @@ -65,31 +65,8 @@ struct acpi_task_ctx { void *at_context; }; -/* - * Private task queue definition for ACPI - */ -static struct proc * -acpi_task_start_threads(struct taskqueue **tqp) -{ - struct proc *acpi_kthread_proc; - int err, i; - - KASSERT(*tqp != NULL, ("acpi taskqueue not created before threads")); - - /* Start one or more threads to service our taskqueue. */ - for (i = 0; i < acpi_max_threads; i++) { - err = kthread_create(taskqueue_thread_loop, tqp, &acpi_kthread_proc, - 0, 0, "acpi_task%d", i); - if (err) { - printf("%s: kthread_create failed (%d)\n", __func__, err); - break; - } - } - return (acpi_kthread_proc); -} - TASKQUEUE_DEFINE(acpi, taskqueue_thread_enqueue, &taskqueue_acpi, - taskqueue_acpi_proc = acpi_task_start_threads(&taskqueue_acpi)); + taskqueue_start_threads(&taskqueue_acpi, 3, PWAIT, "acpi_task")); /* * Bounce through this wrapper function since ACPI-CA doesn't understand |
