From: Rajeshwari Shinde Date: Tue, 8 Oct 2013 10:50:03 +0000 (+0530) Subject: exynos: Export timer_get_us() to get microsecond timer X-Git-Tag: v2013.10~38^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc9ae1bac45a40bdc9b8756757b645dc8d5b781c;p=kernel%2Fu-boot.git exynos: Export timer_get_us() to get microsecond timer This function, if implemented by the board, provides a microsecond timer. The granularity may be larger than 1us if hardware does not support this. Signed-off-by: Simon Glass Signed-off-by: Rajeshwari S Shinde Reviewed-by: Jagannadha Sutradharudu Teki --- diff --git a/include/common.h b/include/common.h index f1a590a..bed4316 100644 --- a/include/common.h +++ b/include/common.h @@ -596,6 +596,12 @@ void ddr_enable_ecc(unsigned int dram_size); #endif #endif +/* + * Return the current value of a monotonically increasing microsecond timer. + * Granularity may be larger than 1us if hardware does not support this. + */ +ulong timer_get_us(void); + /* $(CPU)/cpu.c */ static inline int cpumask_next(int cpu, unsigned int mask) {