linuxKernels.kernels.linux_xanmod: apply patch from review

This commit is contained in:
Phillip Cloud 2022-06-05 11:36:21 -05:00
parent d688ec7d80
commit 83171a1dba
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -14,7 +14,6 @@ let
}; };
xanmodKernelFor = { version, suffix, hash }: buildLinux (args // rec { xanmodKernelFor = { version, suffix, hash }: buildLinux (args // rec {
with (lib.kernel.whenHelpers version);
inherit version; inherit version;
modDirVersion = "${version}-${suffix}"; modDirVersion = "${version}-${suffix}";
@ -25,48 +24,51 @@ let
inherit hash; inherit hash;
}; };
structuredExtraConfig = with lib.kernel; { structuredExtraConfig =
# removed options with lib.kernel;
CFS_BANDWIDTH = lib.mkForce (option no); with (lib.kernel.whenHelpers version);
RT_GROUP_SCHED = lib.mkForce (option no); {
SCHED_AUTOGROUP = lib.mkForce (option no); # removed options
CFS_BANDWIDTH = lib.mkForce (option no);
RT_GROUP_SCHED = lib.mkForce (option no);
SCHED_AUTOGROUP = lib.mkForce (option no);
# AMD P-state driver # AMD P-state driver
X86_AMD_PSTATE = yes; X86_AMD_PSTATE = yes;
# Linux RNG framework # Linux RNG framework
LRNG = whenOlder "5.18" yes; LRNG = whenOlder "5.18" yes;
# Paragon's NTFS3 driver # Paragon's NTFS3 driver
NTFS3_FS = module; NTFS3_FS = module;
NTFS3_LZX_XPRESS = yes; NTFS3_LZX_XPRESS = yes;
NTFS3_FS_POSIX_ACL = yes; NTFS3_FS_POSIX_ACL = yes;
# Preemptive Full Tickless Kernel at 500Hz # Preemptive Full Tickless Kernel at 500Hz
SCHED_CORE = lib.mkForce (option no); SCHED_CORE = lib.mkForce (option no);
PREEMPT_VOLUNTARY = lib.mkForce no; PREEMPT_VOLUNTARY = lib.mkForce no;
PREEMPT = lib.mkForce yes; PREEMPT = lib.mkForce yes;
NO_HZ_FULL = yes; NO_HZ_FULL = yes;
HZ_500 = yes; HZ_500 = yes;
# Google's BBRv2 TCP congestion Control # Google's BBRv2 TCP congestion Control
TCP_CONG_BBR2 = yes; TCP_CONG_BBR2 = yes;
DEFAULT_BBR2 = yes; DEFAULT_BBR2 = yes;
# FQ-PIE Packet Scheduling # FQ-PIE Packet Scheduling
NET_SCH_DEFAULT = yes; NET_SCH_DEFAULT = yes;
DEFAULT_FQ_PIE = yes; DEFAULT_FQ_PIE = yes;
# Graysky's additional CPU optimizations # Graysky's additional CPU optimizations
CC_OPTIMIZE_FOR_PERFORMANCE_O3 = yes; CC_OPTIMIZE_FOR_PERFORMANCE_O3 = yes;
# Futex WAIT_MULTIPLE implementation for Wine / Proton Fsync. # Futex WAIT_MULTIPLE implementation for Wine / Proton Fsync.
FUTEX = yes; FUTEX = yes;
FUTEX_PI = yes; FUTEX_PI = yes;
# WineSync driver for fast kernel-backed Wine # WineSync driver for fast kernel-backed Wine
WINESYNC = module; WINESYNC = module;
}; };
extraMeta = { extraMeta = {
branch = lib.versions.majorMinor version; branch = lib.versions.majorMinor version;