Messages in this thread | | | Subject | Re: 4.5.0+ panic when setup loop device | From | Mike Galbraith <> | Date | Fri, 18 Mar 2016 13:39:46 +0100 |
| |
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
| |