cpuidle.h 362 B

1234567891011121314151617181920
  1. #ifndef __ASM_CPUIDLE_H
  2. #define __ASM_CPUIDLE_H
  3. #include <asm/proc-fns.h>
  4. #ifdef CONFIG_CPU_IDLE
  5. extern int arm_cpuidle_init(unsigned int cpu);
  6. extern int arm_cpuidle_suspend(int index);
  7. #else
  8. static inline int arm_cpuidle_init(unsigned int cpu)
  9. {
  10. return -EOPNOTSUPP;
  11. }
  12. static inline int arm_cpuidle_suspend(int index)
  13. {
  14. return -EOPNOTSUPP;
  15. }
  16. #endif
  17. #endif