1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Invoke 3 ACPI task threads as default if option ACPI_MAX_THREADS is

not defined.
To make previous default behavior (ACPI_MAX_THREADS undefined), define
option ACPI_MAX_THREADS as 0.
This commit is contained in:
Mitsuru IWASAKI 2002-10-31 17:58:39 +00:00
parent 5c63c8dd25
commit 91da7c40b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106255
3 changed files with 9 additions and 6 deletions

View File

@ -95,10 +95,6 @@ TASKQUEUE_DEFINE(acpi, taskqueue_acpi_enqueue, 0,
swi_add(NULL, "acpitaskq", taskqueue_acpi_run, NULL,
SWI_TQ, 0, &taskqueue_acpi_ih));
#if defined(ACPI_MAX_THREADS) && ACPI_MAX_THREADS > 0
#define ACPI_USE_THREADS
#endif
#ifdef ACPI_USE_THREADS
STAILQ_HEAD(, acpi_task_queue) acpi_task_queue;
static struct mtx acpi_task_mtx;

View File

@ -491,7 +491,7 @@ acpi_attach(device_t dev)
}
#endif
#if defined(ACPI_MAX_THREADS) && ACPI_MAX_THREADS > 0
#ifdef ACPI_USE_THREADS
if ((error = acpi_task_thread_init())) {
goto out;
}

View File

@ -385,7 +385,14 @@ extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *);
extern int acpi_acad_get_acline(int *);
#if defined(ACPI_MAX_THREADS) && ACPI_MAX_THREADS > 0
#ifndef ACPI_MAX_THREADS
#define ACPI_MAX_THREADS 3
#endif
#if ACPI_MAX_THREADS > 0
#define ACPI_USE_THREADS
#endif
#ifdef ACPI_USE_THREADS
/*
* ACPI task kernel thread initialization.
*/