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