summaryrefslogtreecommitdiffstats
path: root/fragments/cpu/freq
diff options
context:
space:
mode:
authorWolfgang Müller2024-09-27 10:58:30 +0200
committerWolfgang Müller2024-09-27 10:58:30 +0200
commit3dc9bda0d5c0dd62f39d31e80fae922ebb875213 (patch)
tree41b9e3e8d723f1c54c440069618722d64cf4d3d5 /fragments/cpu/freq
parenta0bac7b44ba22022f291c10c5d893c40ea22c2f9 (diff)
downloadkernfrag-3dc9bda0d5c0dd62f39d31e80fae922ebb875213.tar.gz
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.
Diffstat (limited to 'fragments/cpu/freq')
-rw-r--r--fragments/cpu/freq/acpi4
-rw-r--r--fragments/cpu/freq/amd-pstate2
2 files changed, 6 insertions, 0 deletions
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