Commit b3690fe2 authored by Ben Collins's avatar Ben Collins

[SPARC64]: Move setting of current_thread_info()->cpu to smp_prepare_boot_cpu()

parent e97d374c
......@@ -1261,6 +1261,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
void __devinit smp_prepare_boot_cpu(void)
{
current_thread_info()->cpu = hard_smp_processor_id();
cpu_set(smp_processor_id(), cpu_online_map);
cpu_set(smp_processor_id(), phys_cpu_present_map);
}
......
......@@ -2043,8 +2043,4 @@ void __init trap_init(void)
*/
atomic_inc(&init_mm.mm_count);
current->active_mm = &init_mm;
#ifdef CONFIG_SMP
current_thread_info()->cpu = hard_smp_processor_id();
#endif
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment