kthread: Extract KTHREAD_IS_PER_CPU
[linux-2.6-microblaze.git] / kernel / smpboot.c
index 2efe1e2..f25208e 100644 (file)
@@ -188,6 +188,7 @@ __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu)
                kfree(td);
                return PTR_ERR(tsk);
        }
+       kthread_set_per_cpu(tsk, cpu);
        /*
         * Park the thread so that it could start right on the CPU
         * when it is available.