linux: Fix build without CONFIG_HOTPLUG_CPU
PATCH 1/1 linux: Fix build without CONFIG_HOTPLUG_CPU
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/core/smpboot.c +12 -12
@@ -110,6 +110,18 @@ set_cpu_sibling_map(int cpu) cpu_data[cpu].booted_cores =1 ; } +static void +remove_siblinginfo (int cpu) +{ + phys_proc_id[cpu] =BAD_APICID ; + cpu_core_id[cpu] =BAD_APICID ; + +cpus_clear (cpu_sibling_map[cpu]); +cpus_clear (cpu_core_map[cpu]); + + cpu_data[cpu].booted_cores =0 ; +} +static int xen_smp_intr_init (unsigned int cpu) {int rc;
@@ -358,18 +370,6 @@ static int __init initialize_cpu_present }core_initcall (initialize_cpu_present_map); -static void -remove_siblinginfo (int cpu) -{ - phys_proc_id[cpu] =BAD_APICID ; - cpu_core_id[cpu] =BAD_APICID ; - -cpus_clear (cpu_sibling_map[cpu]); -cpus_clear (cpu_core_map[cpu]); - - cpu_data[cpu].booted_cores =0 ; -} -int __cpu_disable (void ) {cpumask_t map = cpu_online_map;