summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-12-28 00:36:00 +0900
committerTom Rini <trini@konsulko.com>2017-01-14 16:46:29 -0500
commita7b817699985b515b63a601b317e3e8fd413d7e9 (patch)
treeea36dffdef709fbe1c878ccddafe38beaad69454 /include/common.h
parent5bc516ed661af363611d4eb555cae35c0adc6fe7 (diff)
time: move timer APIs to include/time.h
The include/common.h is a collection of unrelated declarations, macros, etc. It is horrible to include such a cluttered header just for some timer functions. Split out timer functions into include/time.h. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/common.h b/include/common.h
index 5075fe4f4f..695478c1ac 100644
--- a/include/common.h
+++ b/include/common.h
@@ -20,6 +20,7 @@ typedef volatile unsigned char vu_char;
#include <config.h>
#include <errno.h>
+#include <time.h>
#include <asm-offsets.h>
#include <linux/bitops.h>
#include <linux/delay.h>
@@ -580,12 +581,6 @@ 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)
{
@@ -724,7 +719,6 @@ void external_interrupt (struct pt_regs *);
void irq_install_handler(int, interrupt_handler_t *, void *);
void irq_free_handler (int);
void reset_timer (void);
-ulong get_timer (ulong base);
/* Return value of monotonic microsecond timer */
unsigned long timer_get_us(void);