From a7fdd2f9a8f4a89d5a9603e9b1b451d5558a1967 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 22 Aug 2024 22:40:19 +0200 Subject: [PATCH] linux: Mark HugeTLB memmap optimisation as optional It is not supported on ARM. --- package/linux-hardened/config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/linux-hardened/config.nix b/package/linux-hardened/config.nix index 73328f6..7b2b56b 100644 --- a/package/linux-hardened/config.nix +++ b/package/linux-hardened/config.nix @@ -297,8 +297,8 @@ TRANSPARENT_HUGEPAGE_ALWAYS = true; READ_ONLY_THP_FOR_FS = true; HUGETLBFS = true; - HUGETLB_PAGE_OPTIMIZE_VMEMMAP = true; - HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON = true; + HUGETLB_PAGE_OPTIMIZE_VMEMMAP = option true; + HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON = option true; DEFERRED_STRUCT_PAGE_INIT = true;