From fed912f55615b24b51378a8719cda2ac72931a3d Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Fri, 22 Feb 2013 16:33:44 -0800 Subject: [PATCH] --- yaml --- r: 356538 b: refs/heads/master c: e8d1955258091e4c92d5a975ebd7fd8a98f5d30f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/setup.c | 13 +++++++++---- trunk/arch/x86/mm/numa.c | 6 ++++-- trunk/drivers/acpi/numa.c | 23 +++++++++++++---------- trunk/include/linux/acpi.h | 8 ++++++++ 5 files changed, 35 insertions(+), 17 deletions(-) diff --git a/[refs] b/[refs] index 659393403beb..cb4d3556b06b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fb06bc8e5f42f38c011de0e59481f464a82380f6 +refs/heads/master: e8d1955258091e4c92d5a975ebd7fd8a98f5d30f diff --git a/trunk/arch/x86/kernel/setup.c b/trunk/arch/x86/kernel/setup.c index 915f5efefcf5..9c857f05cef0 100644 --- a/trunk/arch/x86/kernel/setup.c +++ b/trunk/arch/x86/kernel/setup.c @@ -1056,6 +1056,15 @@ void __init setup_arch(char **cmdline_p) setup_bios_corruption_check(); #endif + /* + * In the memory hotplug case, the kernel needs info from SRAT to + * determine which memory is hotpluggable before allocating memory + * using memblock. + */ + acpi_boot_table_init(); + early_acpi_boot_init(); + early_parse_srat(); + #ifdef CONFIG_X86_32 printk(KERN_DEBUG "initial memory mapped: [mem 0x00000000-%#010lx]\n", (max_pfn_mapped<