summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpivar.h
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-04-21 06:13:48 +0000
committernjl <njl@FreeBSD.org>2005-04-21 06:13:48 +0000
commite238554b5c393f09dfde9d9dd0b1c1028bc58f21 (patch)
tree9dbcdcbfe33f67c95b07fa9a1ed297f5d5875823 /sys/dev/acpica/acpivar.h
parentf721107265b6bdf33b8bd98c55e2b2dc05ad4582 (diff)
downloadFreeBSD-src-e238554b5c393f09dfde9d9dd0b1c1028bc58f21.zip
FreeBSD-src-e238554b5c393f09dfde9d9dd0b1c1028bc58f21.tar.gz
Add the tunable "debug.acpi.max_threads" to allow users to set the
number of task threads to start on boot. Go back to a default of 3 threads to work around lost battery state problems. Users that need a setting of 1 can set this via the tunable. I am investigating the underlying issues and this tunable can be removed once they are solved. MFC after: 2 days
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r--sys/dev/acpica/acpivar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 98f8caf..6fc346f 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -421,9 +421,8 @@ int acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *type,
int *rid, struct resource **dst);
ACPI_HANDLE acpi_GetReference(ACPI_HANDLE scope, ACPI_OBJECT *obj);
-#ifndef ACPI_MAX_THREADS
-#define ACPI_MAX_THREADS 1
-#endif
+/* Default number of task queue threads to start. */
+#define ACPI_MAX_THREADS 3
/* ACPI task kernel thread initialization. */
int acpi_task_thread_init(void);
OpenPOWER on IntegriCloud