Update to Linux 7.2.
This is to pull in the drivers for the mt7927 wireless chipset in my desktop. Normally, I would keep the rest of my machines on LTS but since Linux 7 significantly changed the kernel preemption, maintaining two configs would be more trouble than it is worth.
This commit is contained in:
@@ -14,30 +14,12 @@ let
|
|||||||
full = {
|
full = {
|
||||||
PREEMPT_DYNAMIC = yes;
|
PREEMPT_DYNAMIC = yes;
|
||||||
PREEMPT = yes;
|
PREEMPT = yes;
|
||||||
PREEMPT_VOLUNTARY = lib.mkForce no;
|
|
||||||
PREEMPT_LAZY = lib.mkForce no;
|
PREEMPT_LAZY = lib.mkForce no;
|
||||||
PREEMPT_NONE = no;
|
|
||||||
};
|
};
|
||||||
lazy = {
|
lazy = {
|
||||||
PREEMPT_DYNAMIC = yes;
|
PREEMPT_DYNAMIC = yes;
|
||||||
PREEMPT = no;
|
PREEMPT = no;
|
||||||
PREEMPT_VOLUNTARY = lib.mkForce no;
|
|
||||||
PREEMPT_LAZY = yes;
|
PREEMPT_LAZY = yes;
|
||||||
PREEMPT_NONE = no;
|
|
||||||
};
|
|
||||||
voluntary = {
|
|
||||||
PREEMPT_DYNAMIC = no;
|
|
||||||
PREEMPT = no;
|
|
||||||
PREEMPT_VOLUNTARY = yes;
|
|
||||||
PREEMPT_LAZY = lib.mkForce no;
|
|
||||||
PREEMPT_NONE = no;
|
|
||||||
};
|
|
||||||
none = {
|
|
||||||
PREEMPT_DYNAMIC = no;
|
|
||||||
PREEMPT = no;
|
|
||||||
PREEMPT_VOLUNTARY = lib.mkForce no;
|
|
||||||
PREEMPT_LAZY = lib.mkForce no;
|
|
||||||
PREEMPT_NONE = yes;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
tick_hz =
|
tick_hz =
|
||||||
@@ -99,16 +81,14 @@ let
|
|||||||
TRANSPARENT_HUGEPAGE_MADVISE = yes;
|
TRANSPARENT_HUGEPAGE_MADVISE = yes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
common_config =
|
common_config = with lib.kernel; {
|
||||||
with lib.kernel;
|
|
||||||
{
|
|
||||||
# Google's BBRv3 TCP congestion Control
|
# Google's BBRv3 TCP congestion Control
|
||||||
TCP_CONG_BBR = yes;
|
TCP_CONG_BBR = yes;
|
||||||
DEFAULT_BBR = yes;
|
DEFAULT_BBR = yes;
|
||||||
};
|
};
|
||||||
flavors = {
|
flavors = {
|
||||||
server = lib.mkMerge [
|
server = lib.mkMerge [
|
||||||
preemption_type.none
|
preemption_type.lazy
|
||||||
tick_hz."300"
|
tick_hz."300"
|
||||||
performance_governor.default
|
performance_governor.default
|
||||||
tick_rate.tickless
|
tick_rate.tickless
|
||||||
@@ -142,7 +122,8 @@ in
|
|||||||
|
|
||||||
kernel.version = lib.mkOption {
|
kernel.version = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "linux"; # LTS
|
# default = "linux"; # LTS
|
||||||
|
default = "linux_7_2"; # LTS
|
||||||
example = "linux_6_18";
|
example = "linux_6_18";
|
||||||
description = "What version of the kernl should we use.";
|
description = "What version of the kernl should we use.";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user