aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucian Cristian <lucian.cristian@gmail.com>2016-07-31 17:59:01 +0300
committerJohn Crispin <john@phrozen.org>2016-08-03 15:30:13 +0200
commitd3b21bb2bb4caba0371ddbec19c080bc42f095c7 (patch)
tree1b4c91ce46d260d8960412e462cba2650f583b9c
parent6e68a5dd11bc68981377042f49c0e0d3c978a84d (diff)
downloadupstream-d3b21bb2bb4caba0371ddbec19c080bc42f095c7.tar.gz
upstream-d3b21bb2bb4caba0371ddbec19c080bc42f095c7.tar.bz2
upstream-d3b21bb2bb4caba0371ddbec19c080bc42f095c7.zip
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@gmail.com>
-rw-r--r--target/linux/x86/64/config-default5
-rw-r--r--target/linux/x86/config-4.45
-rw-r--r--target/linux/x86/generic/config-default5
-rw-r--r--target/linux/x86/legacy/config-default5
4 files changed, 15 insertions, 5 deletions
diff --git a/target/linux/x86/64/config-default b/target/linux/x86/64/config-default
index d5be87ffe1..216db70aec 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 13f1f9c53e..22896faf08 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 6d19b59f2c..8694a59f5c 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 2ef610f7ab..60b55c7ee7 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