Re: [PATCH 1/2] sparc64: Fix cpu_possible_mask if nr_cpus is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Atish Patra <atish.patra@xxxxxxxxxx>
Date: Thu, 15 Sep 2016 14:54:40 -0600

> If kernel boot parameter nr_cpus is set, it should define the number
> of CPUs that can ever be available in the system i.e.
> cpu_possible_mask. setup_nr_cpu_ids() overrides the nr_cpu_ids based
> on the cpu_possible_mask during kernel initialization. If
> cpu_possible_mask is not set based on the nr_cpus value, earlier part
> of the kernel would be initialized using nr_cpus value leading to a
> kernel crash.
> 
> Set cpu_possible_mask based on nr_cpus value. Thus setup_nr_cpu_ids()
> becomes redundant and does not corrupt nr_cpu_ids value.
> 
> Signed-off-by: Atish Patra <atish.patra@xxxxxxxxxx>
> Reviewed-by: Bob Picco <bob.picco@xxxxxxxxxx>
> Reviewed-by: Vijay Kumar <vijay.ac.kumar@xxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux