Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. 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 | |
| 14 | #ifndef __RTC_MSM_H__ |
| 15 | #define __RTC_MSM_H__ |
| 16 | |
| 17 | /* |
| 18 | * This is the only function which updates the xtime structure. This |
| 19 | * function is supposed to be called only once during kernel initialization. |
| 20 | * But we need to call this function whenever we receive an RTC update |
| 21 | * from MODEM. |
| 22 | */ |
| 23 | int rtc_hctosys(void); |
| 24 | |
| 25 | extern void msm_pm_set_max_sleep_time(int64_t sleep_time_ns); |
| 26 | void msmrtc_updateatsuspend(struct timespec *ts); |
| 27 | |
| 28 | #ifdef CONFIG_PM |
| 29 | int64_t msm_timer_get_sclk_time(int64_t *period); |
| 30 | #endif /* CONFIG_PM */ |
| 31 | |
| 32 | #endif /* __RTC_MSM_H__ */ |