]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 8485/1: cpuidle: remove cpu parameter from the cpuidle_ops suspend hook
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 17 Dec 2015 10:22:45 +0000 (11:22 +0100)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:06 +0000 (09:55 +0000)
commit667d36c717c3c2edcc0ad68dfa720e590dc2ced1
treee512e0802b784ac16ff87bf7590f574e252951a6
parent3285efd82a944e0a162574dae74839dcb4018930
ARM: 8485/1: cpuidle: remove cpu parameter from the cpuidle_ops suspend hook

The suspend() hook in the cpuidle_ops struct is always called on
the cpu entering idle, which means that the cpu parameter passed
to the suspend hook always corresponds to the local cpu, making
it somewhat redundant.

This patch removes the logical cpu parameter from the ARM
cpuidle_ops.suspend hook and updates all the existing kernel
implementations to reflect this change.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lina Iyer <lina.iyer@linaro.org>
Tested-by: Lina Iyer <lina.iyer@linaro.org>
Tested-by: Jisheng Zhang <jszhang@marvell.com> [psci]
Cc: Lina Iyer <lina.iyer@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cpuidle.h
arch/arm/kernel/cpuidle.c
drivers/soc/qcom/spm.c