Re: [PATCH v2] ARC: Adjust cpuinfo for non-continuous cpu ids

2016-10-19 Thread Vineet Gupta
On 10/19/2016 04:25 AM, Noam Camus wrote: > From: Noam Camus > > num_possible_cpus() returns how many CPUs may be present on system. > However we want the highest possible CPU number. > This may be differ in a sparsed possible CPUs map. > Such map achived by OF for plat-eznps. > > For example if w

[PATCH v2] ARC: Adjust cpuinfo for non-continuous cpu ids

2016-10-19 Thread Noam Camus
From: Noam Camus num_possible_cpus() returns how many CPUs may be present on system. However we want the highest possible CPU number. This may be differ in a sparsed possible CPUs map. Such map achived by OF for plat-eznps. For example if we have: possible cpus mask 0,3 Then: num_possible_cpus(