summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2014-05-08 08:23:24 +0000
committersmh <smh@FreeBSD.org>2014-05-08 08:23:24 +0000
commitaaa39d2970806e7caa268c26f5379579e1bc33b2 (patch)
treeac677e175fa841c6721354d8d9ace823779f2e4e /sys/dev
parentf471b51045e018ca4e01dc8704d0c403797d49fe (diff)
downloadFreeBSD-src-aaa39d2970806e7caa268c26f5379579e1bc33b2.zip
FreeBSD-src-aaa39d2970806e7caa268c26f5379579e1bc33b2.tar.gz
MFC r264849 & r264883
Exposed debug.acpi.max_tasks and debug.acpi.max_threads via sysctls so their values can be viewed. Sponsored by: Multiplay
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/Osd/OsdSchedule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c
index 4afcec5..e5d3d51 100644
--- a/sys/dev/acpica/Osd/OsdSchedule.c
+++ b/sys/dev/acpica/Osd/OsdSchedule.c
@@ -57,6 +57,8 @@ ACPI_MODULE_NAME("SCHEDULE")
*/
static int acpi_max_tasks = ACPI_MAX_TASKS;
TUNABLE_INT("debug.acpi.max_tasks", &acpi_max_tasks);
+SYSCTL_INT(_debug_acpi, OID_AUTO, max_tasks, CTLFLAG_RDTUN, &acpi_max_tasks,
+ 0, "Maximum acpi tasks");
/*
* Allow the user to tune the number of task threads we start. It seems
@@ -64,6 +66,8 @@ TUNABLE_INT("debug.acpi.max_tasks", &acpi_max_tasks);
*/
static int acpi_max_threads = ACPI_MAX_THREADS;
TUNABLE_INT("debug.acpi.max_threads", &acpi_max_threads);
+SYSCTL_INT(_debug_acpi, OID_AUTO, max_threads, CTLFLAG_RDTUN, &acpi_max_threads,
+ 0, "Maximum acpi threads");
static MALLOC_DEFINE(M_ACPITASK, "acpitask", "ACPI deferred task");
OpenPOWER on IntegriCloud