From d3b21bb2bb4caba0371ddbec19c080bc42f095c7 Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Sun, 31 Jul 2016 17:59:01 +0300 Subject: [PATCH] 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 --- 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 d5be87ffe1c8..216db70aecb2 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 13f1f9c53ed2..22896faf08e0 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 6d19b59f2cb0..8694a59f5cd6 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 2ef610f7abf9..60b55c7ee78c 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 -- 2.30.2