Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v3] example: timer_accuracy: fix schedule wait time #1932

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion example/timer/odp_timer_accuracy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ static int run_test(void *arg)
uint64_t tmo_ns;
timer_ctx_t *ctx;
odp_thrmask_t mask;
uint64_t wait = odp_schedule_wait_time(10 * ODP_TIME_MSEC_IN_NS);
odp_schedule_group_t group = ODP_SCHED_GROUP_INVALID;
test_log_t *log = test_global->log;
enum mode_e mode = test_global->opt.mode;
Expand Down Expand Up @@ -1062,7 +1063,7 @@ static int run_test(void *arg)
odp_barrier_wait(&test_global->barrier);

while (1) {
ev = odp_schedule(NULL, 10 * ODP_TIME_MSEC_IN_NS);
ev = odp_schedule(NULL, wait);
time = odp_time_global_strict();

if (ev == ODP_EVENT_INVALID) {
Expand Down