cgroup: Fix automatic disabling of cgroup "memory"
authorPhil Elwell <phil@raspberrypi.org>
Mon, 27 Nov 2017 17:14:54 +0000 (17:14 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:41:08 +0000 (17:41 +0000)
commit70d5094c400effbd61f4f2b7049ce1f8368f6f85
treed8db34e1e4fbd8f926c0497adce78cf1f635bff8
parent237e2bdfc887812ff7890286afeaa668bd43d6e1
cgroup: Fix automatic disabling of cgroup "memory"

Some Raspberry Pis have limited RAM and most users won't use the
cgroup memory support so it is disabled by default. The previous
implementation relied on the memory cgroup being encountered first,
which is not guaranteed to be the case. Change the implementation
to be registration-order-agnostic.

See: https://github.com/raspberrypi/issues/1950

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/cgroup.c