]> Pileus Git - ~andy/linux/blobdiff - kernel/stop_machine.c
KVM: x86 emulator: Remove unused arg from writeback()
[~andy/linux] / kernel / stop_machine.c
index 2df820b03beb17499afccd6c3acc59e08bfd0194..e3516b29076cc38763a99c3584a02b8544f7b5d4 100644 (file)
@@ -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);