diff options
author | Michael Walle <michael@walle.cc> | 2022-05-29 20:13:29 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-23 14:19:33 +0100 |
commit | 471f80db9ef178f84a6f5d70ffdd7990970031f6 (patch) | |
tree | e7096f92ece57dba0cbc19d7fe424bc706447425 /arch/arm64/kernel/cpuidle.c | |
parent | 51280acad8559bd9d2c2e0f98faf08414676478d (diff) | |
download | linux-471f80db9ef178f84a6f5d70ffdd7990970031f6.tar.gz linux-471f80db9ef178f84a6f5d70ffdd7990970031f6.tar.bz2 linux-471f80db9ef178f84a6f5d70ffdd7990970031f6.zip |
arm64: cpuidle: remove generic cpuidle support
The arm64 support of the generic ARM cpuidle driver was removed. This
let us remove all support code for it.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20220529181329.2345722-3-michael@walle.cc
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/cpuidle.c')
-rw-r--r-- | arch/arm64/kernel/cpuidle.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c index 3006f4324808..4150e308e99c 100644 --- a/arch/arm64/kernel/cpuidle.c +++ b/arch/arm64/kernel/cpuidle.c @@ -13,35 +13,6 @@ #include <linux/of_device.h> #include <linux/psci.h> -#include <asm/cpuidle.h> -#include <asm/cpu_ops.h> - -int arm_cpuidle_init(unsigned int cpu) -{ - const struct cpu_operations *ops = get_cpu_ops(cpu); - int ret = -EOPNOTSUPP; - - if (ops && ops->cpu_suspend && ops->cpu_init_idle) - ret = ops->cpu_init_idle(cpu); - - return ret; -} - -/** - * arm_cpuidle_suspend() - function to enter a low-power idle state - * @index: argument to pass to CPU suspend operations - * - * Return: 0 on success, -EOPNOTSUPP if CPU suspend hook not initialized, CPU - * operations back-end error code otherwise. - */ -int arm_cpuidle_suspend(int index) -{ - int cpu = smp_processor_id(); - const struct cpu_operations *ops = get_cpu_ops(cpu); - - return ops->cpu_suspend(index); -} - #ifdef CONFIG_ACPI #include <acpi/processor.h> |