]> Pileus Git - ~andy/linux/blobdiff - kernel/kthread.c
sched: debug: show a weight tree
[~andy/linux] / kernel / kthread.c
index 0ac887882f908502425deeebcda4c678812443cb..25241d6ec8cdec1c5c2e1a80d61dff4335f9db9a 100644 (file)
@@ -180,6 +180,7 @@ void kthread_bind(struct task_struct *k, unsigned int cpu)
        wait_task_inactive(k);
        set_task_cpu(k, cpu);
        k->cpus_allowed = cpumask_of_cpu(cpu);
+       k->rt.nr_cpus_allowed = 1;
 }
 EXPORT_SYMBOL(kthread_bind);