diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-04-21 13:57:18 -0500 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-05 20:58:18 -0600 |
commit | 909bd6d9729cb0c6ba6b80cdc283bbd3e1e12770 (patch) | |
tree | 8e7c974481e3b8979f76a8f687c09bd04b4b6529 /arch/sandbox/cpu/cpu.c | |
parent | 905e8f9e53766e606bd4a0ed46d804889e613f32 (diff) | |
download | u-boot-imx-909bd6d9729cb0c6ba6b80cdc283bbd3e1e12770.zip u-boot-imx-909bd6d9729cb0c6ba6b80cdc283bbd3e1e12770.tar.gz u-boot-imx-909bd6d9729cb0c6ba6b80cdc283bbd3e1e12770.tar.bz2 |
sandbox: Add test function to advance time
Add a function that maintains an offset to include in the system timer
values returned from the lib/time.c APIs.
This will allow timeouts to be skipped instantly in tests
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu/cpu.c')
-rw-r--r-- | arch/sandbox/cpu/cpu.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index 168f2ef..b6aae37 100644 --- a/arch/sandbox/cpu/cpu.c +++ b/arch/sandbox/cpu/cpu.c @@ -45,11 +45,6 @@ void __udelay(unsigned long usec) os_usleep(usec); } -unsigned long __attribute__((no_instrument_function)) timer_get_us(void) -{ - return os_get_nsec() / 1000; -} - int cleanup_before_linux(void) { return 0; |