Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176923062
D60373.1793615921.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
751 B
Referenced Files
None
Subscribers
None
D60373.1793615921.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60373: acpi: Tasks: Ensure sane values for number of tasks and threads
Attached
Detach File
Event Timeline