From patchwork Fri Aug 7 22:28:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 52053 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id E723C20539 for ; Fri, 7 Aug 2015 22:31:11 +0000 (UTC) Received: by labd1 with SMTP id d1sf53903lab.0 for ; Fri, 07 Aug 2015 15:31:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=z1Gq4370xwHR1dOh6tvm1LhBAGnLPWIhS9jbefIGOI4=; b=aiiYIy1ksBVUOEzsnaI+j/mWDydZXVKgpAboxtkkBn3nDaZeDtHZiVIBTjuUq+gVhK RIw90In+LlbqyFxqmfQTtoTkpOPZeGZYtmG6qy6Ytj052l/cGh9mWjszyoF8reEBeiIU Pi1WKR6S45IbMp/LdyhTj2VsV6wixNhjLpeYYMiYEd86/33QtF6Dme+dr5F6CanF6Phx r4ioi6mcMQXpHiswV257cBBeQpQKzs2tf75OpxxF8b0nTn0nt1jmVQ6wXPBMYd6fVgQs 20x7F7tIVmtzkTZLVVKZjluOjPWJHR06F4jcqa4cK4w9dBvPDwjisWf/00WcdeyDl4s8 r3SA== X-Gm-Message-State: ALoCoQlOfACFCfCDUYwnqm4GAq12PEkS35WLpp5eO46KVxVfxolCOLhi7uKp54uebi96oJUN/U3h X-Received: by 10.112.125.71 with SMTP id mo7mr2807762lbb.2.1438986670514; Fri, 07 Aug 2015 15:31:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.198 with SMTP id le6ls489341lab.56.gmail; Fri, 07 Aug 2015 15:31:10 -0700 (PDT) X-Received: by 10.152.43.116 with SMTP id v20mr10266453lal.50.1438986670241; Fri, 07 Aug 2015 15:31:10 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id ao2si8669292lac.69.2015.08.07.15.31.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Aug 2015 15:31:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by labd1 with SMTP id d1so15790566lab.1 for ; Fri, 07 Aug 2015 15:31:10 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr10268400lac.106.1438986670120; Fri, 07 Aug 2015 15:31:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp643350lba; Fri, 7 Aug 2015 15:31:09 -0700 (PDT) X-Received: by 10.140.91.66 with SMTP id y60mr17302497qgd.90.1438986669170; Fri, 07 Aug 2015 15:31:09 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f3si20602883qhc.95.2015.08.07.15.31.08; Fri, 07 Aug 2015 15:31:09 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 51ADC62342; Fri, 7 Aug 2015 22:31:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9F6E36234E; Fri, 7 Aug 2015 22:29:08 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 64A8D62340; Fri, 7 Aug 2015 22:28:47 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id 3482E6230D for ; Fri, 7 Aug 2015 22:28:45 +0000 (UTC) Received: by labd1 with SMTP id d1so15770556lab.1 for ; Fri, 07 Aug 2015 15:28:43 -0700 (PDT) X-Received: by 10.152.18.232 with SMTP id z8mr10369004lad.66.1438986523756; Fri, 07 Aug 2015 15:28:43 -0700 (PDT) Received: from khorivan.synapse.com (14-148-93-178.pool.ukrtel.net. [178.93.148.14]) by smtp.gmail.com with ESMTPSA id ad1sm422651lbc.5.2015.08.07.15.28.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Aug 2015 15:28:43 -0700 (PDT) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Sat, 8 Aug 2015 01:28:10 +0300 Message-Id: <1438986490-12100-5-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438986490-12100-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1438986490-12100-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v2 4/4] linux-generic: odp_schedule: avoid "cycle" word usage X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.khoronzhuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 --- 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 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;