Skip to content

Commit

Permalink
kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akpm00 authored and sfrothwell committed Mar 22, 2014
1 parent 0ce68db commit 2e59abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/kthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 2e59abb

Please sign in to comment.