diff mbox

[API-NEXT,v2,4/4] linux-generic: odp_schedule: avoid "cycle" word usage

Message ID 1438986490-12100-5-git-send-email-ivan.khoronzhuk@linaro.org
State New
Headers show

Commit Message

Ivan Khoronzhuk Aug. 7, 2015, 10:28 p.m. UTC
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(-)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c
index d0cd41e..852071d 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_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;