1d64f84f6SLorenzo Pieralisi #ifndef __ASM_CPUIDLE_H 2d64f84f6SLorenzo Pieralisi #define __ASM_CPUIDLE_H 3d64f84f6SLorenzo Pieralisi 4af4819afSLorenzo Pieralisi #include <asm/proc-fns.h> 5af4819afSLorenzo Pieralisi 6d64f84f6SLorenzo Pieralisi #ifdef CONFIG_CPU_IDLE 7c9d62161SDaniel Lezcano extern int arm_cpuidle_init(unsigned int cpu); 8af391b15SSudeep Holla extern int arm_cpuidle_suspend(int index); 9d64f84f6SLorenzo Pieralisi #else 10c9d62161SDaniel Lezcano static inline int arm_cpuidle_init(unsigned int cpu) 11d64f84f6SLorenzo Pieralisi { 12d64f84f6SLorenzo Pieralisi return -EOPNOTSUPP; 13d64f84f6SLorenzo Pieralisi } 14af3cfdbfSLorenzo Pieralisi 15af391b15SSudeep Holla static inline int arm_cpuidle_suspend(int index) 16af3cfdbfSLorenzo Pieralisi { 17af3cfdbfSLorenzo Pieralisi return -EOPNOTSUPP; 18af3cfdbfSLorenzo Pieralisi } 19d64f84f6SLorenzo Pieralisi #endif 20d64f84f6SLorenzo Pieralisi #endif 21