diff options
author | sbruno <sbruno@FreeBSD.org> | 2012-11-12 18:09:25 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2012-11-12 18:09:25 +0000 |
commit | b4edfc644da5355cd2cbaa6f81d78f03dd2adbf7 (patch) | |
tree | 0e6a2a513a50dfd751522a29e9a77400d11842b3 /sys/dev/acpica/acpivar.h | |
parent | 28a619edd708af281677b9375fb0ab732ed2f08c (diff) | |
download | FreeBSD-src-b4edfc644da5355cd2cbaa6f81d78f03dd2adbf7.zip FreeBSD-src-b4edfc644da5355cd2cbaa6f81d78f03dd2adbf7.tar.gz |
Update MAX_TASKS to scale a bit based on MAXCPU
This alleviates issues on newer Sandy/Ivy Bridge gear that seems to require
boatloads more ACPI resources than before.
Reviewed by: avg@
Obtained from: Yahoo! Inc.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index 81cff16..56635e5 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -476,7 +476,7 @@ ACPI_HANDLE acpi_GetReference(ACPI_HANDLE scope, ACPI_OBJECT *obj); /* Default maximum number of tasks to enqueue. */ #ifndef ACPI_MAX_TASKS -#define ACPI_MAX_TASKS 32 +#define ACPI_MAX_TASKS MAX(32, MAXCPU * 2) #endif /* Default number of task queue threads to start. */ |