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>
This commit is contained in:

committed by
Michael Ellerman

parent
f8d0d5dc64
commit
c642af9c41
@@ -112,7 +112,7 @@ int smp_generic_cpu_bootable(unsigned int nr)
|
||||
#ifdef CONFIG_PPC64
|
||||
int smp_generic_kick_cpu(int nr)
|
||||
{
|
||||
if (nr < 0 || nr >= NR_CPUS)
|
||||
if (nr < 0 || nr >= nr_cpu_ids)
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user