Signed-off-by: David S. Miller <davem@davemloft.net>
void __devinit smp_callin(void)
{
int cpuid = hard_smp_processor_id();
- struct trap_per_cpu *tb = &trap_block[cpuid];;
__local_per_cpu_offset = __per_cpu_offset(cpuid);
atomic_inc(&init_mm.mm_count);
current->active_mm = &init_mm;
- if (tb->hdesc) {
- kfree(tb->hdesc);
- tb->hdesc = NULL;
- }
-
while (!cpu_isset(cpuid, smp_commenced_mask))
rmb();
static int __devinit smp_boot_one_cpu(unsigned int cpu)
{
+ struct trap_per_cpu *tb = &trap_block[cpu];
unsigned long entry =
(unsigned long)(&sparc64_cpu_startup);
unsigned long cookie =
}
cpu_new_thread = NULL;
+ if (tb->hdesc) {
+ kfree(tb->hdesc);
+ tb->hdesc = NULL;
+ }
+
return ret;
}