blob: 324d66ad41e49b8341b879b83fcbf3e42d602ae5 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
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 */
23int rtc_hctosys(void);
24
25extern void msm_pm_set_max_sleep_time(int64_t sleep_time_ns);
26void msmrtc_updateatsuspend(struct timespec *ts);
27
28#ifdef CONFIG_PM
29int64_t msm_timer_get_sclk_time(int64_t *period);
30#endif /* CONFIG_PM */
31
32#endif /* __RTC_MSM_H__ */