Commit c9d62161 authored by Daniel Lezcano's avatar Daniel Lezcano

ARM64: cpuidle: Rename cpu_init_idle to a common function name

With this change the cpuidle-arm64.c file calls the same function name
for both ARM and ARM64.
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarKevin Hilman <khilman@linaro.org>
Acked-by: default avatarRob Herring <robherring2@gmail.com>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Tested-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
parent 191de17a
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
#include <asm/proc-fns.h> #include <asm/proc-fns.h>
#ifdef CONFIG_CPU_IDLE #ifdef CONFIG_CPU_IDLE
extern int cpu_init_idle(unsigned int cpu); extern int arm_cpuidle_init(unsigned int cpu);
extern int cpu_suspend(unsigned long arg); extern int cpu_suspend(unsigned long arg);
#else #else
static inline int cpu_init_idle(unsigned int cpu) static inline int arm_cpuidle_init(unsigned int cpu)
{ {
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <asm/cpuidle.h> #include <asm/cpuidle.h>
#include <asm/cpu_ops.h> #include <asm/cpu_ops.h>
int cpu_init_idle(unsigned int cpu) int arm_cpuidle_init(unsigned int cpu)
{ {
int ret = -EOPNOTSUPP; int ret = -EOPNOTSUPP;
struct device_node *cpu_node = of_cpu_device_node_get(cpu); struct device_node *cpu_node = of_cpu_device_node_get(cpu);
......
...@@ -110,7 +110,7 @@ static int __init arm64_idle_init(void) ...@@ -110,7 +110,7 @@ static int __init arm64_idle_init(void)
* idle states suspend back-end specific data * idle states suspend back-end specific data
*/ */
for_each_possible_cpu(cpu) { for_each_possible_cpu(cpu) {
ret = cpu_init_idle(cpu); ret = arm_cpuidle_init(cpu);
if (ret) { if (ret) {
pr_err("CPU %d failed to init idle CPU ops\n", cpu); pr_err("CPU %d failed to init idle CPU ops\n", cpu);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment