diff options
Diffstat (limited to 'arch/x86_64/kernel/smpboot.c')
-rw-r--r-- | arch/x86_64/kernel/smpboot.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c index 4884ca12444a..c8169d066cbd 100644 --- a/arch/x86_64/kernel/smpboot.c +++ b/arch/x86_64/kernel/smpboot.c | |||
@@ -757,6 +757,23 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid) | |||
757 | return -1; | 757 | return -1; |
758 | } | 758 | } |
759 | 759 | ||
760 | /* Allocate node local memory for AP pdas */ | ||
761 | if (cpu_pda(cpu) == &boot_cpu_pda[cpu]) { | ||
762 | struct x8664_pda *newpda, *pda; | ||
763 | int node = cpu_to_node(cpu); | ||
764 | pda = cpu_pda(cpu); | ||
765 | newpda = kmalloc_node(sizeof (struct x8664_pda), GFP_ATOMIC, | ||
766 | node); | ||
767 | if (newpda) { | ||
768 | memcpy(newpda, pda, sizeof (struct x8664_pda)); | ||
769 | cpu_pda(cpu) = newpda; | ||
770 | } else | ||
771 | printk(KERN_ERR | ||
772 | "Could not allocate node local PDA for CPU %d on node %d\n", | ||
773 | cpu, node); | ||
774 | } | ||
775 | |||
776 | |||
760 | c_idle.idle = get_idle_for_cpu(cpu); | 777 | c_idle.idle = get_idle_for_cpu(cpu); |
761 | 778 | ||
762 | if (c_idle.idle) { | 779 | if (c_idle.idle) { |