mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
sandbox: add get_{tbclk,ticks}
Fixes building after recent readline updates with timeouts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
eef448e1ef
commit
6994ccf869
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue