sched/headers, cgroups: Remove the threadgroup_change_*() wrappery
threadgroup_change_begin()/end() is a pointless wrapper around cgroup_threadgroup_change_begin()/end(), minus a might_sleep() in the !CONFIG_CGROUPS=y case. Remove the wrappery, move the might_sleep() (the down_read() already has a might_sleep() check). This debloats <linux/sched.h> a bit and simplifies this API. Update all call sites. No change in functionality. Acked-by:Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by:
Ingo Molnar <mingo@kernel.org>
Showing
- fs/exec.c 3 additions, 3 deletionsfs/exec.c
- include/linux/cgroup-defs.h 8 additions, 5 deletionsinclude/linux/cgroup-defs.h
- include/linux/sched.h 0 additions, 28 deletionsinclude/linux/sched.h
- kernel/cgroup/pids.c 1 addition, 1 deletionkernel/cgroup/pids.c
- kernel/fork.c 3 additions, 3 deletionskernel/fork.c
- kernel/signal.c 3 additions, 3 deletionskernel/signal.c
Loading
Please register or sign in to comment