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>
#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;
/*
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))
long rc;
uint8_t status;
- if (nr < 0 || nr >= NR_CPUS)
+ if (nr < 0 || nr >= nr_cpu_ids)
return -EINVAL;
/*
static int smp_pSeries_kick_cpu(int nr)
{
- if (nr < 0 || nr >= NR_CPUS)
+ if (nr < 0 || nr >= nr_cpu_ids)
return -EINVAL;
if (!smp_startup_cpu(nr))