From 6cae3710e02b7824b013d8abac6da77c7b7d6fd5 Mon Sep 17 00:00:00 2001 From: Andrew Morton <akpm@linux-foundation.org> Date: Thu, 6 Feb 2014 11:10:07 +1100 Subject: [PATCH] kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index aaeb73f05176cd..2c355bf2f0946d 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -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); } /**