Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

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" <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Gilad Ben-Yossef <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 authored and sfrothwell committed Feb 6, 2014
1 parent f655a77 commit 6cae371
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 6cae371

Please sign in to comment.