diff options
author | Matias Elo <matias.elo@nokia.com> | 2020-12-31 11:05:02 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-02-05 16:54:28 +0200 |
commit | 41bee0ac9b161fd45bdaabf0e127630f4181d427 (patch) | |
tree | 93879229217dc378c8e2ef138d604adf00850881 /test/validation/api/scheduler | |
parent | 988fb2cf1ff202ec883f9f4871ec238a54312c0c (diff) |
validation: sched: don't call schedule with wait after pause
Update validation test to follow the updated odp_schedule_pause() API and
only call schedule with ODP_SCHED_NO_WAIT after calling pause.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Tested-by: Shijith Thotton <sthotton@marvell.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'test/validation/api/scheduler')
-rw-r--r-- | test/validation/api/scheduler/scheduler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/validation/api/scheduler/scheduler.c b/test/validation/api/scheduler/scheduler.c index 6b8e30559..461d00ebd 100644 --- a/test/validation/api/scheduler/scheduler.c +++ b/test/validation/api/scheduler/scheduler.c @@ -2177,7 +2177,7 @@ static int sched_and_plain_thread(void *arg) /* Make sure scheduling context is released */ odp_schedule_pause(); - while ((ev1 = odp_schedule(NULL, wait)) != ODP_EVENT_INVALID) { + while ((ev1 = odp_schedule(NULL, ODP_SCHED_NO_WAIT)) != ODP_EVENT_INVALID) { if (sync == ODP_SCHED_SYNC_ORDERED) odp_schedule_order_lock(0); |