On Thu, 2015-07-09 at 16:26 +0800, Chao Peng wrote: > For booting cpu, the socket number is not needed to be 0 so > it needs to be computed by cpu number. > > For secondary cpu, phys_proc_id is not valid in CPU_PREPARE > notifier(cpu_smpboot_alloc), so cpu_to_socket(cpu) can't be used. > Instead, pre-allocate secondary_cpu_mask in cpu_smpboot_alloc() > and later consume it in smp_store_cpu_info(). > > This patch also change socket_cpumask type from 'cpumask_var_t *' > to 'cpumask_t **' so that smaller NR_CPUS works. > > Reported-by: Boris Ostrovsky <boris.ostrov...@oracle.com> > Signed-off-by: Chao Peng <chao.p.p...@linux.intel.com> > --- > Changes in v2: > * Fix case that booting cpu is on the socket other than socket0. > As far as this goes:
Tested-by: Dario Faggioli <dario.faggi...@citrix.com> Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel