c9d6216149
With this change the cpuidle-arm64.c file calls the same function name for both ARM and ARM64. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Kevin Hilman <khilman@linaro.org> Acked-by: Rob Herring <robherring2@gmail.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
25 lines
443 B
C
25 lines
443 B
C
#ifndef __ASM_CPUIDLE_H
|
|
#define __ASM_CPUIDLE_H
|
|
|
|
#include <asm/proc-fns.h>
|
|
|
|
#ifdef CONFIG_CPU_IDLE
|
|
extern int arm_cpuidle_init(unsigned int cpu);
|
|
extern int cpu_suspend(unsigned long arg);
|
|
#else
|
|
static inline int arm_cpuidle_init(unsigned int cpu)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
|
|
static inline int cpu_suspend(unsigned long arg)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
#endif
|
|
static inline int arm_cpuidle_suspend(int index)
|
|
{
|
|
return cpu_suspend(index);
|
|
}
|
|
#endif
|