diff options
Diffstat (limited to 'kernel/kthread.c')
| -rw-r--r-- | kernel/kthread.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index 2f26adea0f84..26db528c1d88 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -20,6 +20,7 @@  #include <linux/freezer.h>  #include <linux/ptrace.h>  #include <linux/uaccess.h> +#include <linux/cgroup.h>  #include <trace/events/sched.h>  static DEFINE_SPINLOCK(kthread_create_lock); @@ -225,6 +226,7 @@ static int kthread(void *_create)  	ret = -EINTR;  	if (!test_bit(KTHREAD_SHOULD_STOP, &self->flags)) { +		cgroup_kthread_ready();  		__kthread_parkme(self);  		ret = threadfn(data);  	} @@ -538,6 +540,7 @@ int kthreadd(void *unused)  	set_mems_allowed(node_states[N_MEMORY]);  	current->flags |= PF_NOFREEZE; +	cgroup_init_kthreadd();  	for (;;) {  		set_current_state(TASK_INTERRUPTIBLE);  | 
