summaryrefslogtreecommitdiff
path: root/drivers/video/b2r2/b2r2_timing.c
blob: 4f3e2b8b0422a650f52851e318d0f899c3a56130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (C) ST-Ericsson SA 2010
 *
 * ST-Ericsson B2R2 timing
 *
 * Author: Johan Mossberg <johan.xx.mossberg@stericsson.com>
 * for ST-Ericsson.
 *
 * License terms: GNU General Public License (GPL), version 2.
 */

#include <linux/time.h>


u32 b2r2_get_curr_nsec(void)
{
	struct timespec ts;

	getrawmonotonic(&ts);

	return (u32)timespec_to_ns(&ts);
}