|
@@ -168,7 +168,7 @@ static unsigned int physflat_cpu_mask_to_apicid(cpumask_t cpumask)
|
|
* May as well be the first.
|
|
* May as well be the first.
|
|
*/
|
|
*/
|
|
cpu = first_cpu(cpumask);
|
|
cpu = first_cpu(cpumask);
|
|
- if ((unsigned)cpu < NR_CPUS)
|
|
|
|
|
|
+ if ((unsigned)cpu < nr_cpu_ids)
|
|
return per_cpu(x86_cpu_to_apicid, cpu);
|
|
return per_cpu(x86_cpu_to_apicid, cpu);
|
|
else
|
|
else
|
|
return BAD_APICID;
|
|
return BAD_APICID;
|