Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140228087
D37081.id112113.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37081.id112113.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D37081: acpi: Create cppc_notify sysctl before it is checked
Attached
Detach File
Event Timeline
Log In to Comment