diff options
author | Tom Rini <trini@konsulko.com> | 2025-02-13 09:52:16 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-13 09:53:31 -0600 |
commit | f60d1163c1fe2dd409ba1af9368715c9237e567d (patch) | |
tree | 71ba35988854f486fb5270cc1dd4dddf9e3c2979 /drivers/timer/sandbox_timer.c | |
parent | 87dec3078a0a36d2e6da7602b9a750010c2d111d (diff) | |
parent | 404cdf0cdaacfa8595f8ec268709612d48335f01 (diff) |
Merge patch series "test: Complete the suite migration"
Simon Glass <sjg@chromium.org> says:
This series completes the removal of test commands for suites. With this
it is possible to declare a suite (including init and uninit functions)
without needing to write a command.
It also adds timing for test suites, so we can keep track of how long
things take.
Link: https://lore.kernel.org/all/20250207183121.117663-1-sjg@chromium.org/
Diffstat (limited to 'drivers/timer/sandbox_timer.c')
-rw-r--r-- | drivers/timer/sandbox_timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c index e8b54a02965..c1baf3c69ec 100644 --- a/drivers/timer/sandbox_timer.c +++ b/drivers/timer/sandbox_timer.c @@ -18,6 +18,11 @@ void timer_test_add_offset(unsigned long offset) sandbox_timer_offset += offset; } +ulong timer_test_get_offset(void) +{ + return sandbox_timer_offset; +}; + u64 notrace timer_early_get_count(void) { return os_get_nsec() / 1000 + sandbox_timer_offset * 1000; |