[source] x86: enable CPU frequency scaling
LEDE Commits
lede-commits at lists.infradead.org
Wed Aug 3 06:30:40 PDT 2016
blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=d3b21bb2bb4caba0371ddbec19c080bc42f095c7
commit d3b21bb2bb4caba0371ddbec19c080bc42f095c7
Author: Lucian Cristian <lucian.cristian at gmail.com>
AuthorDate: Sun Jul 31 17:59:01 2016 +0300
x86: enable CPU frequency scaling
CPU frequency scaling enables the operating system to scale the CPU
frequency up or down in order to save power. CPU frequencies can be
scaled automatically depending on the system load, in response to ACPI
events, or manually by userspace programs.
Signed-off-by: Lucian Cristian <lucian.cristian at gmail.com>
---
target/linux/x86/64/config-default | 5 ++++-
target/linux/x86/config-4.4 | 5 +++--
target/linux/x86/generic/config-default | 5 ++++-
target/linux/x86/legacy/config-default | 5 ++++-
4 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/target/linux/x86/64/config-default b/target/linux/x86/64/config-default
index d5be87f..216db70 100644
--- a/target/linux/x86/64/config-default
+++ b/target/linux/x86/64/config-default
@@ -239,8 +239,11 @@ CONFIG_VSOCKETS=y
CONFIG_WATCHDOG_CORE=y
CONFIG_X86_64=y
CONFIG_X86_64_SMP=y
-# CONFIG_X86_ACPI_CPUFREQ is not set
+CONFIG_X86_ACPI_CPUFREQ=y
+# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
+# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
+CONFIG_X86_AMD_FREQ_SENSITIVITY=y
CONFIG_X86_CMOV=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_DEBUGCTLMSR=y
diff --git a/target/linux/x86/config-4.4 b/target/linux/x86/config-4.4
index 13f1f9c..22896fa 100644
--- a/target/linux/x86/config-4.4
+++ b/target/linux/x86/config-4.4
@@ -60,9 +60,10 @@ CONFIG_COMPAT_VDSO=y
CONFIG_CONSOLE_TRANSLATIONS=y
# CONFIG_CPU5_WDT is not set
CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
-# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
diff --git a/target/linux/x86/generic/config-default b/target/linux/x86/generic/config-default
index 6d19b59..8694a59 100644
--- a/target/linux/x86/generic/config-default
+++ b/target/linux/x86/generic/config-default
@@ -305,9 +305,12 @@ CONFIG_VIRTIO_PCI_LEGACY=y
CONFIG_VIRTUALIZATION=y
# CONFIG_WDT is not set
CONFIG_X86_32_SMP=y
-# CONFIG_X86_ACPI_CPUFREQ is not set
+CONFIG_X86_ACPI_CPUFREQ=y
+# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
+# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
# CONFIG_X86_BIGSMP is not set
+CONFIG_X86_AMD_FREQ_SENSITIVITY=y
CONFIG_X86_CMOV=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_DEBUGCTLMSR=y
diff --git a/target/linux/x86/legacy/config-default b/target/linux/x86/legacy/config-default
index 2ef610f..60b55c7 100644
--- a/target/linux/x86/legacy/config-default
+++ b/target/linux/x86/legacy/config-default
@@ -203,7 +203,10 @@ CONFIG_USB_UHCI_HCD=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
# CONFIG_WDT is not set
-# CONFIG_X86_ACPI_CPUFREQ is not set
+CONFIG_X86_ACPI_CPUFREQ=y
+# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
+# CONFIG_X86_POWERNOW_K8 is not set
+# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
# CONFIG_X86_E_POWERSAVER is not set
# CONFIG_X86_INTEL_LPSS is not set
More information about the lede-commits
mailing list