]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Jan 2014 03:10:27 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:27 +0000 (14:10 +1100)
set_cpus_allowed() doesn't exist when CONFIG_CPUMASK_OFFSTACK=y.

Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Mike Galbraith <bitbucket@online.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/kthread.c

index fc0d0d3e604369b18fa051b798dc88f1120fc8f9..232f06c4a5377f19a195aee717617099e4b970ed 100644 (file)
@@ -142,7 +142,7 @@ void *kthread_data(struct task_struct *task)
  */
 void set_kthreadd_affinity(void)
 {
-       set_cpus_allowed(current, kthreadd_task->cpus_allowed);
+       set_cpus_allowed_ptr(current, &kthreadd_task->cpus_allowed);
 }
 
 /**