Commit 536f5cab authored by ajs124's avatar ajs124
Browse files

linux/patches: remove cpu-cgroup-v2

parent 89e97697
Loading
Loading
Loading
Loading
+0 −784

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −21
Original line number Diff line number Diff line
Patches for CPU Controller on Control Group v2
===============================================

See Tejun Heo's [explanation][1] for why these patches are currently
out-of-tree.

Generating the patches
-----------------------

In a linux checkout, with remote tc-cgroup pointing to
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git, your
nixpkgs checkout in the same directory as your linux checkout (or
modify the command accordingly), and setting `ver` to the appropriate
version:

```shell
$ ver=4.7
$ git log --reverse --patch v$ver..remotes/tc-cgroup/cgroup-v2-cpu-v$ver > ../nixpkgs/pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/$ver.patch
```

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git/tree/Documentation/cgroup-v2-cpu.txt?h=cgroup-v2-cpu
+0 −11
Original line number Diff line number Diff line
let
  ents = builtins.readDir ./.;
in builtins.listToAttrs (builtins.filter (x: x != null) (map (name: let
  match = builtins.match "(.*)\\.patch" name;
in if match == null then null else {
  name = builtins.head match;
  value = {
    name = "cpu-cgroup-v2-${name}";
    patch = ./. + "/${name}";
  };
}) (builtins.attrNames ents)))
+0 −2
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@
      patch = ./modinst-arg-list-too-long.patch;
    };

  cpu-cgroup-v2 = import ./cpu-cgroup-v2-patches;

  hardened = let
    mkPatch = kernelVersion: { version, sha256, patch }: let src = patch; in {
      name = lib.removeSuffix ".patch" src.name;