@@ -510,10 +510,10 @@ static int schedule_loop(odp_queue_t *out_queue, uint64_t wait,
odp_event_t out_ev[],
unsigned int max_num, unsigned int max_deq)
{
- uint64_t start_cycle, cycle, diff;
+ uint64_t start_tick, tick, diff;
int ret;
- start_cycle = 0;
+ start_tick = 0;
while (1) {
ret = schedule(out_queue, out_ev, max_num, max_deq);
@@ -527,13 +527,13 @@ static int schedule_loop(odp_queue_t *out_queue, uint64_t wait,
if (wait == ODP_SCHED_NO_WAIT)
break;
- if (start_cycle == 0) {
- start_cycle = odp_time_tick();
+ if (start_tick == 0) {
+ start_tick = odp_time_tick();
continue;
}
- cycle = odp_time_tick();
- diff = odp_time_ticks_diff(start_cycle, cycle);
+ tick = odp_time_tick();
+ diff = odp_time_ticks_diff(start_tick, tick);
if (wait < diff)
break;
The word "cycle" is left from old API time names. The "cycle" is ambiguous word, especially when it can be used for other purposes. So better to use "tick" word or just "t" symbol. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- platform/linux-generic/odp_schedule.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)