Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
[firefly-linux-kernel-4.4.55.git] / kernel / sched / tune.c
index bd7f319ce53e10f171fa79bb712527887e8097f6..505d7b35b0e1fd27fb29cb7aa6b039c6ddc7e886 100644 (file)
@@ -715,7 +715,7 @@ schedtune_css_free(struct cgroup_subsys_state *css)
 struct cgroup_subsys schedtune_cgrp_subsys = {
        .css_alloc      = schedtune_css_alloc,
        .css_free       = schedtune_css_free,
-//     .allow_attach   = schedtune_allow_attach,
+       .allow_attach   = schedtune_allow_attach,
        .can_attach     = schedtune_can_attach,
        .cancel_attach  = schedtune_cancel_attach,
        .legacy_cftypes = files,
@@ -736,6 +736,8 @@ schedtune_init_cgroups(void)
 
        pr_info("schedtune: configured to support %d boost groups\n",
                BOOSTGROUPS_COUNT);
+
+       schedtune_initialized = true;
 }
 
 #else /* CONFIG_CGROUP_SCHEDTUNE */