summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/cpuidle.h
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2015-06-18 15:41:32 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2015-06-19 14:46:39 +0100
commitaf391b15f7b56ce19f52862d36595637dd42b575 (patch)
tree582ee110ca1414b2b24d06f45a9b0718e814aa24 /arch/arm64/include/asm/cpuidle.h
parent4e2ee96a63d434177ad1785208fe06858ebfe739 (diff)
arm64: kernel: rename __cpu_suspend to keep it aligned with arm
This patch renames __cpu_suspend to cpu_suspend so that it's aligned with ARM32. It also removes the redundant wrapper created. This is in preparation to implement generic PSCI system suspend using the cpu_{suspend,resume} which now has the same interface on both ARM and ARM64. Cc: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Ashwin Chaugule <ashwin.chaugule@linaro.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cpuidle.h')
-rw-r--r--arch/arm64/include/asm/cpuidle.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm64/include/asm/cpuidle.h b/arch/arm64/include/asm/cpuidle.h
index 141b2fcabaa6..0f74f05d662a 100644
--- a/arch/arm64/include/asm/cpuidle.h
+++ b/arch/arm64/include/asm/cpuidle.h
@@ -5,20 +5,16 @@
#ifdef CONFIG_CPU_IDLE
extern int arm_cpuidle_init(unsigned int cpu);
-extern int cpu_suspend(unsigned long arg);
+extern int arm_cpuidle_suspend(int index);
#else
static inline int arm_cpuidle_init(unsigned int cpu)
{
return -EOPNOTSUPP;
}
-static inline int cpu_suspend(unsigned long arg)
+static inline int arm_cpuidle_suspend(int index)
{
return -EOPNOTSUPP;
}
#endif
-static inline int arm_cpuidle_suspend(int index)
-{
- return cpu_suspend(index);
-}
#endif