Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175927742
D54803.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
D54803.diff
View Options
diff --git a/sys/x86/cpufreq/hwpstate_amd.c b/sys/x86/cpufreq/hwpstate_amd.c
--- a/sys/x86/cpufreq/hwpstate_amd.c
+++ b/sys/x86/cpufreq/hwpstate_amd.c
@@ -179,6 +179,11 @@
&hwpstate_pkg_ctrl_enable, 0,
"Set 1 (default) to enable package-level control, 0 to disable");
+static bool hwpstate_amd_cppc_enable = true;
+SYSCTL_BOOL(_machdep, OID_AUTO, hwpstate_amd_cppc_enable, CTLFLAG_RDTUN,
+ &hwpstate_amd_cppc_enable, 0,
+ "Set 1 (default) to enable AMD CPPC, 0 to disable");
+
static device_method_t hwpstate_methods[] = {
/* Device interface */
DEVMETHOD(device_identify, hwpstate_identify),
@@ -667,7 +672,8 @@
sc = device_get_softc(dev);
- if (amd_extended_feature_extensions & AMDFEID_CPPC) {
+ if (hwpstate_amd_cppc_enable &&
+ (amd_extended_feature_extensions & AMDFEID_CPPC)) {
sc->flags |= PSTATE_CPPC;
device_set_desc(dev,
"AMD Collaborative Processor Performance Control (CPPC)");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 15, 2:01 PM (12 m, 42 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40843974
Default Alt Text
D54803.diff (937 B)
Attached To
Mode
D54803: hwpstate: Add CPPC enable tunable
Attached
Detach File
Event Timeline
Log In to Comment