cpuidle.h 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2012 Freescale Semiconductor, Inc.
  3. * Copyright 2012 Linaro Ltd.
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. #ifdef CONFIG_CPU_IDLE
  13. extern int imx5_cpuidle_init(void);
  14. extern int imx6q_cpuidle_init(void);
  15. extern int imx6sl_cpuidle_init(void);
  16. extern int imx6sx_cpuidle_init(void);
  17. #else
  18. static inline int imx5_cpuidle_init(void)
  19. {
  20. return 0;
  21. }
  22. static inline int imx6q_cpuidle_init(void)
  23. {
  24. return 0;
  25. }
  26. static inline int imx6sl_cpuidle_init(void)
  27. {
  28. return 0;
  29. }
  30. static inline int imx6sx_cpuidle_init(void)
  31. {
  32. return 0;
  33. }
  34. #endif