Atish Patra 9b2f753ec2 sparc64: Fix cpu_possible_mask if nr_cpus is set
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@oracle.com>
Reviewed-by: Bob Picco <bob.picco@oracle.com>
Reviewed-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-28 08:24:02 -07:00
..
2008-12-09 00:50:13 -08:00
2016-01-12 20:46:57 +02:00
2012-03-28 18:30:03 +01:00
2015-05-13 10:55:42 +02:00
2015-05-13 10:55:42 +02:00
2012-03-28 18:30:03 +01:00
2014-08-26 13:45:55 -04:00
2014-04-29 01:12:25 -04:00
2008-08-31 20:56:15 -07:00
2012-03-28 18:30:03 +01:00
2013-03-20 11:06:54 -07:00
2014-10-05 16:53:40 -07:00
2012-05-15 10:22:00 -07:00
2012-03-28 18:30:03 +01:00
2014-05-02 01:30:20 -04:00
2016-01-12 20:46:49 +02:00
2016-03-22 15:36:02 -07:00
2012-04-15 10:28:50 -07:00
2012-07-26 16:46:16 -07:00