Skip to content

Commit f4946c7

Browse files
committed
linux_xanmod: Sync config with upstream
1 parent ac80080 commit f4946c7

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

pkgs/os-specific/linux/kernel/xanmod-kernels.nix

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,26 @@ let
5252
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = lib.mkOverride 60 yes;
5353
CPU_FREQ_DEFAULT_GOV_SCHEDUTIL = lib.mkOverride 60 no;
5454

55-
# Full preemption
56-
PREEMPT = lib.mkOverride 60 yes;
55+
# Lazy preemption
56+
PREEMPT_LAZY = yes;
5757
PREEMPT_VOLUNTARY = lib.mkOverride 60 no;
58+
PREEMPTIRQ_DELAY_TEST = unset;
5859

5960
# Google's BBRv3 TCP congestion Control
6061
TCP_CONG_BBR = yes;
6162
DEFAULT_BBR = yes;
6263

63-
# Preemptive Full Tickless Kernel at 250Hz
64+
# Preemptive tickless idle kernel
6465
HZ = freeform "250";
6566
HZ_250 = yes;
66-
HZ_1000 = no;
67+
NO_HZ = no;
68+
NO_HZ_FULL = lib.mkOverride 60 no;
69+
NO_HZ_IDLE = yes;
70+
71+
# CPU idle governors favored
72+
CPU_IDLE_GOV_HALTPOLL = yes; # Already enabled
73+
CPU_IDLE_GOV_LADDER = yes;
74+
CPU_IDLE_GOV_TEO = yes;
6775

6876
# RCU_BOOST and RCU_EXP_KTHREAD
6977
RCU_EXPERT = yes;
@@ -72,6 +80,12 @@ let
7280
RCU_BOOST = yes;
7381
RCU_BOOST_DELAY = freeform "0";
7482
RCU_EXP_KTHREAD = yes;
83+
RCU_NOCB_CPU = yes;
84+
RCU_DOUBLE_CHECK_CB_TIME = yes;
85+
86+
# x86 features
87+
X86_FRED = yes;
88+
X86_POSTED_MSI = yes;
7589
};
7690

7791
extraPassthru.updateScript = {

0 commit comments

Comments
 (0)