powerpc/smp: Convert NR_CPUS to nr_cpu_ids

nr_cpu_ids can be limited by nr_cpus boot parameter, whereas NR_CPUS is a
compile time constant, which shouldn't be compared against during cpu kick.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
此提交包含在:
Santosh Sivaraj
2017-06-27 12:30:06 +05:30
提交者 Michael Ellerman
父節點 f8d0d5dc64
當前提交 c642af9c41
共有 4 個檔案被更改,包括 4 行新增4 行删除

查看文件

@@ -115,7 +115,7 @@ static void smp_cell_setup_cpu(int cpu)
static int smp_cell_kick_cpu(int nr)
{
if (nr < 0 || nr >= NR_CPUS)
if (nr < 0 || nr >= nr_cpu_ids)
return -EINVAL;
if (!smp_startup_cpu(nr))