diff mbox

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

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

Commit Message

Ivan Khoronzhuk Aug. 5, 2015, 9:01 p.m. UTC
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 <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 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;