The word "cycle" is left from old API time names. The "cycle" is
ambiguous word, especially when it can be used with software cycles.
So better to use "time" word or just "t" symbol, as no matter in
which units time is measured, in sec, hours, cycles or counts.

Signed-off-by: Ivan Khoronzhuk <[email protected]>
---
 platform/linux-generic/odp_schedule.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/platform/linux-generic/odp_schedule.c 
b/platform/linux-generic/odp_schedule.c
index fb60fc1..f7c19a3 100644
--- a/platform/linux-generic/odp_schedule.c
+++ b/platform/linux-generic/odp_schedule.c
@@ -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_time, time, diff;
        int ret;
 
-       start_cycle = 0;
+       start_time = 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_counts();
+               if (start_time == 0) {
+                       start_time = odp_time_counts();
                        continue;
                }
 
-               cycle = odp_time_counts();
-               diff  = odp_time_diff_counts(start_cycle, cycle);
+               time = odp_time_counts();
+               diff = odp_time_diff_counts(start_time, time);
 
                if (wait < diff)
                        break;
-- 
1.9.1

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to