|
@@ -493,17 +493,20 @@ void pda_init(int cpu)
|
|
/* others are initialized in smpboot.c */
|
|
/* others are initialized in smpboot.c */
|
|
pda->pcurrent = &init_task;
|
|
pda->pcurrent = &init_task;
|
|
pda->irqstackptr = boot_cpu_stack;
|
|
pda->irqstackptr = boot_cpu_stack;
|
|
|
|
+ pda->irqstackptr += IRQSTACKSIZE - 64;
|
|
} else {
|
|
} else {
|
|
- pda->irqstackptr = (char *)
|
|
|
|
- __get_free_pages(GFP_ATOMIC, IRQSTACK_ORDER);
|
|
|
|
- if (!pda->irqstackptr)
|
|
|
|
- panic("cannot allocate irqstack for cpu %d", cpu);
|
|
|
|
|
|
+ if (!pda->irqstackptr) {
|
|
|
|
+ pda->irqstackptr = (char *)
|
|
|
|
+ __get_free_pages(GFP_ATOMIC, IRQSTACK_ORDER);
|
|
|
|
+ if (!pda->irqstackptr)
|
|
|
|
+ panic("cannot allocate irqstack for cpu %d",
|
|
|
|
+ cpu);
|
|
|
|
+ pda->irqstackptr += IRQSTACKSIZE - 64;
|
|
|
|
+ }
|
|
|
|
|
|
if (pda->nodenumber == 0 && cpu_to_node(cpu) != NUMA_NO_NODE)
|
|
if (pda->nodenumber == 0 && cpu_to_node(cpu) != NUMA_NO_NODE)
|
|
pda->nodenumber = cpu_to_node(cpu);
|
|
pda->nodenumber = cpu_to_node(cpu);
|
|
}
|
|
}
|
|
-
|
|
|
|
- pda->irqstackptr += IRQSTACKSIZE-64;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
char boot_exception_stacks[(N_EXCEPTION_STACKS - 1) * EXCEPTION_STKSZ +
|
|
char boot_exception_stacks[(N_EXCEPTION_STACKS - 1) * EXCEPTION_STKSZ +
|