cgroup: refactor allow_attach function into common code
authorRom Lemarchand <romlem@android.com>
Fri, 7 Nov 2014 20:48:17 +0000 (12:48 -0800)
committerRom Lemarchand <romlem@android.com>
Fri, 7 Nov 2014 21:47:35 +0000 (13:47 -0800)
commit57114e95e8c4f5035c993fc74bbe94cd9573f1bb
tree1e6c0201b3604ae6230b8981ee61c2dfd527a1a4
parentc5400a9083607af9852cf2c0ac0093a128cd3c18
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
kernel/sched/core.c