rtc-msm.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (c) 2011, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __RTC_MSM_H__
  14. #define __RTC_MSM_H__
  15. /*
  16. * This is the only function which updates the xtime structure. This
  17. * function is supposed to be called only once during kernel initialization.
  18. * But we need to call this function whenever we receive an RTC update
  19. * from MODEM.
  20. */
  21. int rtc_hctosys(void);
  22. extern void msm_pm_set_max_sleep_time(int64_t sleep_time_ns);
  23. void msmrtc_updateatsuspend(struct timespec *ts);
  24. #ifdef CONFIG_PM
  25. int64_t msm_timer_get_sclk_time(int64_t *period);
  26. #endif /* CONFIG_PM */
  27. #endif /* __RTC_MSM_H__ */