pm-sh73a0.c 666 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * sh73a0 Power management support
  3. *
  4. * Copyright (C) 2012 Bastian Hecht <hechtb+renesas@gmail.com>
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/suspend.h>
  11. #include <mach/common.h>
  12. #ifdef CONFIG_SUSPEND
  13. static int sh73a0_enter_suspend(suspend_state_t suspend_state)
  14. {
  15. cpu_do_idle();
  16. return 0;
  17. }
  18. static void sh73a0_suspend_init(void)
  19. {
  20. shmobile_suspend_ops.enter = sh73a0_enter_suspend;
  21. }
  22. #else
  23. static void sh73a0_suspend_init(void) {}
  24. #endif
  25. void __init sh73a0_pm_init(void)
  26. {
  27. sh73a0_suspend_init();
  28. }