cgroup: refactor allow_attach function into common code
authorRom Lemarchand <romlem@android.com>
Fri, 7 Nov 2014 20:48:17 +0000 (12:48 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:42 +0000 (13:53 -0800)
commit6809864a2cc59332b246c183a2b78328f6aa551e
tree2cc8352e9aec310ec205eb6468dd1c2f8b091eee
parent1f027b30b538458d50fa7a40d0ef0ddfed8cd3f2
cgroup: refactor allow_attach function into common code

move cpu_cgroup_allow_attach to a common subsys_cgroup_allow_attach.
This allows any process with CAP_SYS_NICE to move tasks across cgroups if
they use this function as their allow_attach handler.

Bug: 18260435
Change-Id: I6bb4933d07e889d0dc39e33b4e71320c34a2c90f
Signed-off-by: Rom Lemarchand <romlem@android.com>
include/linux/cgroup.h
kernel/cgroup.c