powerpc/smp: Do not BUG_ON if invalid CPU during kick
authorSantosh Sivaraj <santosh@fossix.org>
Tue, 27 Jun 2017 07:00:05 +0000 (12:30 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jun 2017 03:08:16 +0000 (13:08 +1000)
commitf8d0d5dc641cd405ad40cb2498b04df9716baee6
tree4a3577149617c81530a5527e37414bf6017d9188
parentadeb8667eaf5f00b5a7f0cede680cda078e8424b
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>
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/powernv/smp.c
arch/powerpc/platforms/pseries/smp.c