diff options
author | John Baldwin <jhb@FreeBSD.org> | 2001-10-25 19:56:02 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2001-10-25 19:56:02 +0000 |
commit | 76e7a7829278402dac55652e8a3a78def61a69c6 (patch) | |
tree | 63418400a34d1c0aa6ca44643c6e817e631ad727 /sys/dev/acpica/Osd/OsdSchedule.c | |
parent | 9c59aa470c98774cfdd5e699474172575bf060df (diff) | |
download | src-76e7a7829278402dac55652e8a3a78def61a69c6.tar.gz src-76e7a7829278402dac55652e8a3a78def61a69c6.zip |
Notes
Diffstat (limited to 'sys/dev/acpica/Osd/OsdSchedule.c')
-rw-r--r-- | sys/dev/acpica/Osd/OsdSchedule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c index b44671b3f1c4..8a952dff8f29 100644 --- a/sys/dev/acpica/Osd/OsdSchedule.c +++ b/sys/dev/acpica/Osd/OsdSchedule.c @@ -64,6 +64,7 @@ ACPI_STATUS AcpiOsQueueForExecution(UINT32 Priority, OSD_EXECUTION_CALLBACK Function, void *Context) { struct acpi_task *at; + int pri; FUNCTION_TRACE(__func__); @@ -77,25 +78,24 @@ AcpiOsQueueForExecution(UINT32 Priority, OSD_EXECUTION_CALLBACK Function, void * at->at_function = Function; at->at_context = Context; - at->at_task.ta_func = AcpiOsExecuteQueue; - at->at_task.ta_context = at; switch (Priority) { case OSD_PRIORITY_GPE: - at->at_task.ta_priority = 4; + pri = 4; break; case OSD_PRIORITY_HIGH: - at->at_task.ta_priority = 3; + pri = 3; break; case OSD_PRIORITY_MED: - at->at_task.ta_priority = 2; + pri = 2; break; case OSD_PRIORITY_LO: - at->at_task.ta_priority = 1; + pri = 1; break; default: free(at, M_ACPITASK); return_ACPI_STATUS(AE_BAD_PARAMETER); } + TASK_INIT(&at->at_task, pri, AcpiOsExecuteQueue, at); taskqueue_enqueue(taskqueue_swi, (struct task *)at); return_ACPI_STATUS(AE_OK); |