arm64: smp: consistently use error codes
authorMark Rutland <mark.rutland@arm.com>
Mon, 20 Apr 2015 16:55:30 +0000 (17:55 +0100)
committerMark Rutland <mark.rutland@arm.com>
Wed, 27 May 2015 12:21:40 +0000 (13:21 +0100)
commit6b99c68cb5dd274d79451e5135f9450f7c01ca52
treee1d09f95d35d933dc157b1917bc9956705f4aacf
parent6ee3c78cecc795e87de9552baca76ea88292556d
arm64: smp: consistently use error codes

cpu_kill currently returns one for success and zero for failure, which
is unlike all the other cpu_operations, which return zero for success
and an error code upon failure. This difference is unnecessarily
confusing.

Make cpu_kill consistent with the other cpu_operations.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/psci.c
arch/arm64/kernel/smp.c