Unverified Commit a397c045 authored by K900's avatar K900 Committed by GitHub
Browse files

linux/common-config: choose between HIGHMEM4G and HIGHMEM64G (#473734)

parents 68621df4 e80537b8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -111,7 +111,9 @@ let

      # Enable crashkernel support
      PROC_VMCORE = yes;
      HIGHMEM4G = lib.mkIf (stdenv.hostPlatform.isx86 && stdenv.hostPlatform.is32bit) yes;
      HIGHMEM4G = lib.mkIf (stdenv.hostPlatform.isx86 && stdenv.hostPlatform.is32bit) (
        whenAtLeast "6.15" yes
      );

      # Track memory leaks and performance issues related to allocations.
      MEM_ALLOC_PROFILING = whenAtLeast "6.10" yes;
@@ -954,7 +956,7 @@ let
      KSM = yes;
      VIRT_DRIVERS = yes;
      # We need 64 GB (PAE) support for Xen guest support
      HIGHMEM64G = {
      HIGHMEM64G = whenOlder "6.15" {
        optional = true;
        tristate = lib.mkIf (!stdenv.hostPlatform.is64bit) "y";
      };