config/hosts/jericho/extras/kernel-clr.nix

29 lines
1 KiB
Nix

{ pkgs, inputs, ... }:
{
boot.kernelPatches = let
pickPatch = x: "${inputs.kernel-clr}/${x}";
patchFiles = map pickPatch [
"0104-pci-pme-wakeups.patch"
"0105-ksm-wakeups.patch"
"0108-smpboot-reuse-timer-calibration.patch"
"0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch"
"0118-add-scheduler-turbo3-patch.patch"
"0119-use-lfence-instead-of-rep-and-nop.patch"
"0120-do-accept-in-LIFO-order-for-cache-efficiency.patch"
"0121-locking-rwsem-spin-faster.patch"
"0128-itmt_epb-use-epb-to-scale-itmt.patch"
"0129-mm-wakeups-remove-a-wakeup.patch"
"0130-itmt2-ADL-fixes.patch"
"0131-add-a-per-cpu-minimum-high-watermark-an-tune-batch-s.patch"
"0132-prezero-20220308.patch"
"0133-novector.patch"
];
patches = map builtins.readFile patchFiles;
patchSet = builtins.concatStringsSep "\n" patches;
patch = pkgs.writeText "kernel-clr-combined.patch" patchSet;
in [{
inherit patch;
name = "Clear Linux* patchset";
}];
}