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 cpu_suspend(unsigned long arg); 9 #else 10 static inline int arm_cpuidle_init(unsigned int cpu) 11 { 12 return -EOPNOTSUPP; 13 } 14 15 static inline int cpu_suspend(unsigned long arg) 16 { 17 return -EOPNOTSUPP; 18 } 19 #endif 20 static inline int arm_cpuidle_suspend(int index) 21 { 22 return cpu_suspend(index); 23 } 24 #endif 25