From 3dc9bda0d5c0dd62f39d31e80fae922ebb875213 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 27 Sep 2024 10:58:30 +0200 Subject: fragments: Extract CPU frequency scaling configuration from cpu fragment There are now two new frequency-related profiles. A legacy "acpi" profile that activates frequency scaling and the default schedutil governor, and a newer "amd-pstate" profile that will use the new drivers for AMD Zen systems. --- fragments/cpu/amd | 1 - fragments/cpu/amd-zen3 | 1 - fragments/cpu/freq/acpi | 4 ++++ fragments/cpu/freq/amd-pstate | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 fragments/cpu/amd-zen3 create mode 100644 fragments/cpu/freq/acpi create mode 100644 fragments/cpu/freq/amd-pstate (limited to 'fragments/cpu') diff --git a/fragments/cpu/amd b/fragments/cpu/amd index e773987..89767aa 100644 --- a/fragments/cpu/amd +++ b/fragments/cpu/amd @@ -6,7 +6,6 @@ CONFIG_CPU_SUP_AMD=y # CONFIG_CPU_SUP_ZHAOXIN is not set CONFIG_MK8=y -CONFIG_X86_ACPI_CPUFREQ=y CONFIG_X86_AMD_PLATFORM_DEVICE=y CONFIG_PERF_EVENTS_AMD_POWER=y diff --git a/fragments/cpu/amd-zen3 b/fragments/cpu/amd-zen3 deleted file mode 100644 index 377cfef..0000000 --- a/fragments/cpu/amd-zen3 +++ /dev/null @@ -1 +0,0 @@ -CONFIG_X86_AMD_PSTATE=y diff --git a/fragments/cpu/freq/acpi b/fragments/cpu/freq/acpi new file mode 100644 index 0000000..2c37a12 --- /dev/null +++ b/fragments/cpu/freq/acpi @@ -0,0 +1,4 @@ +CONFIG_CPU_FREQ=y +CONFIG_X86_ACPI_CPUFREQ=y +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y +CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y diff --git a/fragments/cpu/freq/amd-pstate b/fragments/cpu/freq/amd-pstate new file mode 100644 index 0000000..3c3302e --- /dev/null +++ b/fragments/cpu/freq/amd-pstate @@ -0,0 +1,2 @@ +CONFIG_CPU_FREQ=y +CONFIG_X86_AMD_PSTATE=y -- cgit v1.2.3-2-gb3c3