summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorAtemu <atemu.main@gmail.com>2022-11-04 11:46:32 +0100
committerAtemu <atemu.main@gmail.com>2022-11-04 12:54:31 +0100
commitebb82d58f631c16063eca5cc08d42e3b547ddca9 (patch)
tree0de370c56f100826834551ed1635e40a4f2bbdaa /pkgs/os-specific/linux
parent5196625a158d6fd7ddd6701850a624bab55655a9 (diff)
linux_xanmod: force X86_AMD_PSTATE=y
https://github.com/NixOS/nixpkgs/pull/197295 enables it as a module by default
for recent kernel versions. We want it built-in on every xanmod version as they
are all patched to have the functionality.

Using mkImageMediaOverride to override the default kernel config but still allow
the user to mkForce it themselves.

Fixes https://github.com/NixOS/nixpkgs/issues/199498

Co-authored-by: Bernardo Meurer <bernardo@meurer.org>
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/kernel/xanmod-kernels.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/xanmod-kernels.nix b/pkgs/os-specific/linux/kernel/xanmod-kernels.nix
index 2ac516175f02a..44746439ec2eb 100644
--- a/pkgs/os-specific/linux/kernel/xanmod-kernels.nix
+++ b/pkgs/os-specific/linux/kernel/xanmod-kernels.nix
@@ -27,7 +27,7 @@ let
 
     structuredExtraConfig = with lib.kernel; {
       # AMD P-state driver
-      X86_AMD_PSTATE = yes;
+      X86_AMD_PSTATE = lib.mkOverride 60 yes;
 
       # Google's BBRv2 TCP congestion Control
       TCP_CONG_BBR2 = yes;