summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/include/mach/pm-timer.h
blob: f5fafbbaa77ab09e023eaab69143a470db854fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) ST-Ericsson SA 2011
 *
 * Author: Jonas Aaberg <jonas.aberg@stericsson.com>
 *
 * License Terms: GNU General Public License v2
 *
 */

#ifndef PM_TIMER_H
#define  PM_TIMER_H

#include <linux/ktime.h>

#ifdef CONFIG_UX500_CPUIDLE_DEBUG
ktime_t u8500_rtc_exit_latency_get(void);
void ux500_rtcrtt_measure_latency(bool enable);
#else
static inline ktime_t u8500_rtc_exit_latency_get(void)
{
	return ktime_set(0, 0);
}
static inline void ux500_rtcrtt_measure_latency(bool enable) { }

#endif

void ux500_rtcrtt_off(void);
void ux500_rtcrtt_next(u32 time_us);

#endif