Page MenuHomeFreeBSD

D60373.1793615921.diff
No OneTemporary

Authored By
Unknown
Size
751 B
Referenced Files
None
Subscribers
None

D60373.1793615921.diff

diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c
--- a/sys/dev/acpica/Osd/OsdSchedule.c
+++ b/sys/dev/acpica/Osd/OsdSchedule.c
@@ -94,6 +94,8 @@
static void
acpi_task_init(void *arg)
{
+ if (acpi_max_tasks < 0)
+ acpi_max_tasks = 0;
acpi_tasks = malloc(sizeof(*acpi_tasks) * acpi_max_tasks, M_ACPITASK,
M_WAITOK | M_ZERO);
@@ -111,7 +113,12 @@
acpi_taskq = taskqueue_create_fast("acpi_task", M_NOWAIT,
&taskqueue_thread_enqueue, &acpi_taskq);
+
+ if (acpi_max_threads < 1)
+ acpi_max_threads = 1;
+
taskqueue_start_threads(&acpi_taskq, acpi_max_threads, PWAIT, "acpi_task");
+
if (acpi_task_count > 0) {
if (bootverbose)
printf("AcpiOsExecute: enqueue %d pending tasks\n",

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 2, 10:38 AM (11 h, 4 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40306569
Default Alt Text
D60373.1793615921.diff (751 B)

Event Timeline