• C
    x86: move prefill_possible_map calling early, fix, V2 · 14adf855
    Chuck Ebbert 提交于
    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: NChuck Ebbert <cebbert@redhat.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    14adf855
smp.h 5.2 KB