• Chuck Ebbert's avatar
    x86: move prefill_possible_map calling early, fix, V2 · 14adf855
    Chuck Ebbert authored
    Commit 4a701737 ("x86: move prefill_possible_map calling early, fix")
    is the wrong fix: prefill_possible_map() needs to be available
    even when CONFIG_HOTPLUG_CPU is not set. A followon patch will do that.
    
    Fix this correctly by making prefill_possible_map() available even when
    CONFIG_HOTPLUG_CPU is not set. The function is needed so that
    the number of possible CPUs can be determined.
    
    Tested on uniprocessor machine with CPU hotplug disabled.
    
    From boot log:
      Before: NR_CPUS: 512, nr_cpu_ids: 512, nr_node_ids 1
      After: NR_CPUS: 512, nr_cpu_ids: 1, nr_node_ids 1
    Signed-off-by: default avatarChuck Ebbert <cebbert@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    14adf855
smp.h 5.18 KB