cpuidle.h 401 B

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