summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-03-04 14:55:15 +0200
committerGitHub <noreply@github.com>2023-03-04 14:55:15 +0200
commit3d7920603f017f0a9c9dab98eebc8a8c38a3f938 (patch)
treec75f219ffcf9c7636c2222ff5a4baf1af0b1c829
parentMerge pull request #219475 from NixOS/backport-219467-to-release-22.11 (diff)
parentlinux: enable Multi-Gen LRU by default (diff)
downloadnixpkgs-3d7920603f017f0a9c9dab98eebc8a8c38a3f938.tar.gz
Merge pull request #218420 from mweinelt/22.11/mglru
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index b3cd95e04ded..7942d2876cd8 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -943,6 +943,9 @@ let
SCHED_CORE = whenAtLeast "5.14" yes;
+ LRU_GEN = whenAtLeast "6.1" yes;
+ LRU_GEN_ENABLED = whenAtLeast "6.1" yes;
+
FSL_MC_UAPI_SUPPORT = mkIf (stdenv.hostPlatform.system == "aarch64-linux") (whenAtLeast "5.12" yes);
ASHMEM = { optional = true; tristate = whenBetween "5.0" "5.18" "y";};