brcm2708: add linux 4.19 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0498-configs-Enable-PIDs-cgroup.patch
1 From 8bf83aaaa40f140bc14521ac2f1dd08a8463cc87 Mon Sep 17 00:00:00 2001
2 From: Henrique Gontijo <hgontijo@guidewire.com>
3 Date: Sun, 12 May 2019 17:11:02 -0700
4 Subject: [PATCH 498/703] configs: Enable PIDs cgroup
5
6 My use case to is to allow Kubernetes master to run on Raspberry Pi 3.
7 Kubernetes introduced [Pid limiting](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20190129-pid-limiting.md),
8 on v.1.14.0 which includes [Pod Pids Limit](https://github.com/kubernetes/kubernetes/commit/bce9d5f2043bd86964c9fec80d466e47776071bc)
9 and [Node Pids Limit](https://github.com/kubernetes/kubernetes/commit/2597a1d97ef4d8f54b1ca661453e32794b756909#diff-fa76bb6ae2d9b4bb3d023737fe5e6029R333)
10 that requires pids cgroup.
11
12 See: https://github.com/raspberrypi/linux/pull/2968
13 ---
14 arch/arm/configs/bcm2709_defconfig | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- a/arch/arm/configs/bcm2709_defconfig
18 +++ b/arch/arm/configs/bcm2709_defconfig
19 @@ -20,6 +20,7 @@ CONFIG_CGROUP_FREEZER=y
20 CONFIG_CPUSETS=y
21 CONFIG_CGROUP_DEVICE=y
22 CONFIG_CGROUP_CPUACCT=y
23 +CONFIG_CGROUP_PIDS=y
24 CONFIG_NAMESPACES=y
25 CONFIG_USER_NS=y
26 CONFIG_SCHED_AUTOGROUP=y