From: Lucian Cristian Date: Sun, 31 Jul 2016 14:59:01 +0000 (+0300) Subject: x86: enable CPU frequency scaling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d3b21bb2bb4caba0371ddbec19c080bc42f095c7;p=openwrt%2Fstaging%2Fyousong.git 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 --- 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