powerpc/smp: Do not BUG_ON if invalid CPU during kick
During secondary start, we do not need to BUG_ON if an invalid CPU number is passed. We already print an error if secondary cannot be started, so just return an error instead. 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
adeb8667ea
commit
f8d0d5dc64
@@ -151,7 +151,8 @@ static void smp_setup_cpu(int cpu)
|
||||
|
||||
static int smp_pSeries_kick_cpu(int nr)
|
||||
{
|
||||
BUG_ON(nr < 0 || nr >= NR_CPUS);
|
||||
if (nr < 0 || nr >= NR_CPUS)
|
||||
return -EINVAL;
|
||||
|
||||
if (!smp_startup_cpu(nr))
|
||||
return -ENOENT;
|
||||
|
Reference in New Issue
Block a user