Revert "cgroup: Add kernel param to enable memory group"
authorPhil Elwell <phil@raspberrypi.org>
Sat, 25 Nov 2017 19:21:11 +0000 (19:21 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:41:08 +0000 (17:41 +0000)
This reverts commit ba742b52e5099b3ed964e78f227dc96460b5cdc0.

kernel/cgroup.c

index c3f5abf0fd7a47af325f97fa5342e799745fbeae..2c785f9570243879d79b277d27393485824b5056 100644 (file)
@@ -5638,8 +5638,6 @@ int __init cgroup_init_early(void)
 }
 
 static u16 cgroup_disable_mask __initdata;
-static bool cgroup_enable_memory;
-static int __init cgroup_disable(char *str);
 
 /**
  * cgroup_init - cgroup initialization
@@ -5678,9 +5676,6 @@ int __init cgroup_init(void)
 
        mutex_unlock(&cgroup_mutex);
 
-       if (!cgroup_enable_memory)
-               cgroup_disable("memory");
-
        for_each_subsys(ss, ssid) {
                if (ss->early_init) {
                        struct cgroup_subsys_state *css =
@@ -6156,13 +6151,6 @@ static int __init cgroup_disable(char *str)
 }
 __setup("cgroup_disable=", cgroup_disable);
 
-static int __init cgroup_memory(char *str)
-{
-       kstrtobool(str, &cgroup_enable_memory);
-       return 1;
-}
-__setup("cgroup_memory=", cgroup_memory);
-
 static int __init cgroup_no_v1(char *str)
 {
        struct cgroup_subsys *ss;