projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eef448e
)
sandbox: add get_{tbclk,ticks}
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 21 Feb 2012 05:21:17 +0000
(
00:21
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Mon, 12 Mar 2012 15:03:43 +0000
(11:03 -0400)
Fixes building after recent readline updates with timeouts.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/sandbox/sandbox/sandbox.c
patch
|
blob
|
history
diff --git
a/board/sandbox/sandbox/sandbox.c
b/board/sandbox/sandbox/sandbox.c
index f376c743578e433ddc7fa63752a1c2f323447283..98830139a5c4a6a18bd1a43c58839c19b789efd8 100644
(file)
--- 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;