cpuidle.h 580 B

12345678910111213141516171819202122
  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. #include <linux/cpuidle.h>
  13. #ifdef CONFIG_CPU_IDLE
  14. extern int imx_cpuidle_init(struct cpuidle_driver *drv);
  15. #else
  16. static inline int imx_cpuidle_init(struct cpuidle_driver *drv)
  17. {
  18. return -ENODEV;
  19. }
  20. #endif