X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fstop_machine.c;h=e3516b29076cc38763a99c3584a02b8544f7b5d4;hb=adddcecf9222aa32938480cc1d03de629fab2a86;hp=2df820b03beb17499afccd6c3acc59e08bfd0194;hpb=bc030d6cb9532877c1c5a3f5e7123344fa24a285;p=~andy%2Flinux diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index 2df820b03be..e3516b29076 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c @@ -301,8 +301,10 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb, case CPU_UP_PREPARE: BUG_ON(stopper->thread || stopper->enabled || !list_empty(&stopper->works)); - p = kthread_create(cpu_stopper_thread, stopper, "migration/%d", - cpu); + p = kthread_create_on_node(cpu_stopper_thread, + stopper, + cpu_to_node(cpu), + "migration/%d", cpu); if (IS_ERR(p)) return notifier_from_errno(PTR_ERR(p)); get_task_struct(p);