Page MenuHomeFreeBSD

D37081.id112113.diff
No OneTemporary

D37081.id112113.diff

diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -381,6 +381,14 @@
cpu_sysctl_tree = SYSCTL_ADD_NODE(&cpu_sysctl_ctx,
SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), OID_AUTO, "cpu",
CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "node for CPU children");
+
+#if defined(__i386__) || defined(__amd64__)
+ /* Add sysctl handler to control registering for CPPC notifications */
+ cppc_notify = 1;
+ SYSCTL_ADD_BOOL(&cpu_sysctl_ctx, SYSCTL_CHILDREN(cpu_sysctl_tree),
+ OID_AUTO, "cppc_notify", CTLFLAG_RDTUN | CTLFLAG_MPSAFE,
+ &cppc_notify, 0, "Register for CPPC Notifications");
+#endif
}
/*
@@ -987,14 +995,6 @@
NULL, 0, acpi_cpu_global_cx_lowest_sysctl, "A",
"Global lowest Cx sleep state to use");
-#if defined(__i386__) || defined(__amd64__)
- /* Add sysctl handler to control registering for CPPC notifications */
- cppc_notify = 1;
- SYSCTL_ADD_BOOL(&cpu_sysctl_ctx, SYSCTL_CHILDREN(cpu_sysctl_tree),
- OID_AUTO, "cppc_notify", CTLFLAG_RDTUN | CTLFLAG_MPSAFE,
- &cppc_notify, 0, "Register for CPPC Notifications");
-#endif
-
/* Take over idling from cpu_idle_default(). */
cpu_cx_lowest_lim = 0;
CPU_FOREACH(i) {

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 22, 3:56 PM (1 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27154722
Default Alt Text
D37081.id112113.diff (1 KB)

Event Timeline