On Fri, 2016-03-18 at 12:55 +0100, Thomas Gleixner wrote:

> Does the patch below fix the wreckage?

Yup, all better.

> diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
> index 643dbdccf4bc..c5ac71276076 100644
> --- a/arch/x86/kernel/smpboot.c
> +++ b/arch/x86/kernel/smpboot.c
> @@ -319,7 +319,7 @@ static void __init smp_init_package_map(void)
>          * might change in the future....
>          */
>         ncpus = boot_cpu_data.x86_max_cores * smp_num_siblings;
> -       __max_logical_packages = DIV_ROUND_UP(nr_cpu_ids, ncpus);
> +       __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus);
>  
>         /*
>          * Possibly larger than what we need as the number of apic
> ids per

Reply via email to