From: Mike Frysinger Date: Tue, 21 Feb 2012 05:21:17 +0000 (-0500) Subject: sandbox: add get_{tbclk,ticks} X-Git-Tag: v2012.04-rc1~64^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6994ccf869ec20c4a69b8eb2fc321a4eb4217d24;p=oweals%2Fu-boot.git sandbox: add get_{tbclk,ticks} Fixes building after recent readline updates with timeouts. Signed-off-by: Mike Frysinger --- diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c index f376c74357..98830139a5 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;