X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Fsetup.c;h=9c337b0e8ba7c4ac5b82a3e4ad979c7d4011b4bf;hb=1e90a13d0c3dc94512af1ccb2b6563e8297838fa;hp=bbfbca5fea0cda10cf7f56e92d2a19d95a37ecb7;hpb=0e60439c22ec551e9b5780eba73ddfeb63ab63d9;p=cascardo%2Flinux.git diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index bbfbca5fea0c..9c337b0e8ba7 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1221,11 +1221,16 @@ void __init setup_arch(char **cmdline_p) */ get_smp_config(); + /* + * Systems w/o ACPI and mptables might not have it mapped the local + * APIC yet, but prefill_possible_map() might need to access it. + */ + init_apic_mappings(); + prefill_possible_map(); init_cpu_to_node(); - init_apic_mappings(); io_apic_init_mappings(); kvm_guest_init();