From 23f23b5603ff94bdda2c93475f8448620f4d3fa4 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 20 Jun 2023 15:03:02 +0300 Subject: [PATCH] kernel/common-config: enable DAMON --- pkgs/os-specific/linux/kernel/common-config.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 090205b0dc0e..0d0bddb61319 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -125,6 +125,16 @@ let CC_OPTIMIZE_FOR_SIZE = no; }; + memory = { + DAMON = whenAtLeast "5.15" yes; + DAMON_VADDR = whenAtLeast "5.15" yes; + DAMON_PADDR = whenAtLeast "5.15" yes; + DAMON_SYSFS = whenAtLeast "5.15" yes; + DAMON_DBGFS = whenAtLeast "5.15" yes; + DAMON_RECLAIM = whenAtLeast "5.15" yes; + DAMON_LRU_SORT = whenAtLeast "5.15" yes; + }; + memtest = { MEMTEST = yes; };