summaryrefslogtreecommitdiff
path: root/board/sandbox
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-02-21 00:21:17 -0500
committerMike Frysinger <vapier@gentoo.org>2012-03-12 11:03:43 -0400
commit6994ccf869ec20c4a69b8eb2fc321a4eb4217d24 (patch)
tree5746af7168ef086caee89ac485fce80df7df730b /board/sandbox
parenteef448e1efeb589a3f725977a339a83d86b91331 (diff)
sandbox: add get_{tbclk,ticks}
Fixes building after recent readline updates with timeouts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/sandbox')
-rw-r--r--board/sandbox/sandbox/sandbox.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index f376c743578..98830139a5c 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -34,6 +34,16 @@ void flush_cache(unsigned long start, unsigned long size)
{
}
+ulong get_tbclk(void)
+{
+ return CONFIG_SYS_HZ;
+}
+
+unsigned long long get_ticks(void)
+{
+ return get_timer(0);
+}
+
ulong get_timer(ulong base)
{
return (os_get_nsec() / 1000000) - base;