xref: /linux/arch/arm64/include/asm/cpuidle.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1 #ifndef __ASM_CPUIDLE_H
2 #define __ASM_CPUIDLE_H
3 
4 #include <asm/proc-fns.h>
5 
6 #ifdef CONFIG_CPU_IDLE
7 extern int arm_cpuidle_init(unsigned int cpu);
8 extern int arm_cpuidle_suspend(int index);
9 #else
10 static inline int arm_cpuidle_init(unsigned int cpu)
11 {
12 	return -EOPNOTSUPP;
13 }
14 
15 static inline int arm_cpuidle_suspend(int index)
16 {
17 	return -EOPNOTSUPP;
18 }
19 #endif
20 #endif
21