Revert "acpi: Make taskqueue only run on BSP"

This change causes some ACPI problems, such as power button events being
processed even if just used for resume.

This reverts commit c0df8f6f0e.
This commit is contained in:
Aymeric Wibo
2026-02-07 21:09:54 +01:00
parent 25a8168f86
commit f3e9c94bc5
+1 -5
View File
@@ -35,7 +35,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/cpuset.h>
#include <sys/kernel.h>
#include <sys/kthread.h>
#include <sys/malloc.h>
@@ -110,13 +109,10 @@ static void
acpi_taskq_init(void *arg)
{
int i;
/* XXX Currently assuming BSP is CPU0. */
cpuset_t just_bsp = CPUSET_T_INITIALIZER(0x1);
acpi_taskq = taskqueue_create_fast("acpi_task", M_NOWAIT,
&taskqueue_thread_enqueue, &acpi_taskq);
taskqueue_start_threads_cpuset(&acpi_taskq, acpi_max_threads, PWAIT,
&just_bsp, "acpi_task");
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",