diff options
| author | Rom Lemarchand <romlem@android.com> | 2015-05-26 17:00:44 -0700 |
|---|---|---|
| committer | John Stultz <john.stultz@linaro.org> | 2016-02-16 13:53:44 -0800 |
| commit | 0d6687a82af23846e8aa6786bcc672ca16b0a5c6 (patch) | |
| tree | b9a46b2d60bbd68af75cc2010f07a637e38e7edc /include/linux | |
| parent | dccfe9526bde3e8140b3b97d7fc457e62dbcc75b (diff) | |
cgroup: Fix issues in allow_attach callback
- Return -EINVAL when cgroups support isn't enabled
- Add allow_attach callback in CPU cgroups
Change-Id: Id3360b4a39919524fc4b6fcbd44fa2050009f000
Signed-off-by: Rom Lemarchand <romlem@android.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cgroup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index c08c83182e08..5c30867511cf 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -566,7 +566,7 @@ static inline int cgroup_init(void) { return 0; } static inline int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css, struct cgroup_taskset *tset) { - return 0; + return -EINVAL; } #endif /* !CONFIG_CGROUPS */ |
