From patchwork Thu Sep 3 00:07:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 52999 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id ECEB723002 for ; Thu, 3 Sep 2015 00:09:10 +0000 (UTC) Received: by wiclp12 with SMTP id lp12sf11706354wic.0 for ; Wed, 02 Sep 2015 17:09: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=J/F4apfC90vKnwISUr3wz6+LheXAtMSTSOX+ZDHBzE4=; b=RrU2UTnn2Wx232xkzl2A8I2CXdswc2oM1i5DLgK2xPHZrLPEtfr4I1wEUa3RS6PpBh MNNhA8rqrVrqMYY7LgLj0DLKJuv2BEx2bIJIP44HIWvu+YsZjnlB0fRIJpBlECng1DYo 5mGKza8qw8Ly77b+VmnVMurgHA+MF6QIvJR2dlrUxfeCYufNrBd2qWB0jTczWgM7Ms36 g+6h5LF5HngKmPmEVkWFbsGUp3BftV9JcBV312LpeiGGFcNRs00SVRff8k+t5x0/LwjB 7O1pPa7hiuw9pGkkOCs6moDlV/94kAZMDuXbVqRaqlIQqklb5LGxyiwSWhKEO9SDhY9u juAw== X-Gm-Message-State: ALoCoQkHidlc5cJKFSt+sjNPpYUqAst3NhavPGnTtFWlTv5/DXhkO57Elz56dstNWyiFigdkTPcq X-Received: by 10.112.16.200 with SMTP id i8mr9889586lbd.20.1441238950242; Wed, 02 Sep 2015 17:09:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls158253lah.82.gmail; Wed, 02 Sep 2015 17:09:10 -0700 (PDT) X-Received: by 10.112.181.162 with SMTP id dx2mr18144048lbc.75.1441238950088; Wed, 02 Sep 2015 17:09:10 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id h4si17262291lbj.32.2015.09.02.17.09.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2015 17:09:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by laeb10 with SMTP id b10so18274080lae.1 for ; Wed, 02 Sep 2015 17:09:09 -0700 (PDT) X-Received: by 10.112.125.34 with SMTP id mn2mr15435510lbb.76.1441238949650; Wed, 02 Sep 2015 17:09:09 -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.164.42 with SMTP id yn10csp909755lbb; Wed, 2 Sep 2015 17:09:08 -0700 (PDT) X-Received: by 10.55.195.80 with SMTP id a77mr32808895qkj.2.1441238948857; Wed, 02 Sep 2015 17:09:08 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k18si27879440qkl.20.2015.09.02.17.09.07; Wed, 02 Sep 2015 17:09:08 -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 BA52761A0C; Thu, 3 Sep 2015 00:09:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 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 [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 50FB461A0A; Thu, 3 Sep 2015 00:07:41 +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 CCBBC61A04; Thu, 3 Sep 2015 00:07:29 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by lists.linaro.org (Postfix) with ESMTPS id 85FA361A00 for ; Thu, 3 Sep 2015 00:07:28 +0000 (UTC) Received: by obqa2 with SMTP id a2so22297836obq.3 for ; Wed, 02 Sep 2015 17:07:28 -0700 (PDT) X-Received: by 10.182.28.165 with SMTP id c5mr24854653obh.29.1441238848033; Wed, 02 Sep 2015 17:07:28 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id k5sm15601814oev.16.2015.09.02.17.07.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Sep 2015 17:07:27 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org, maxim.uvarov@linaro.org Date: Wed, 2 Sep 2015 19:07:17 -0500 Message-Id: <1441238841-25105-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441238841-25105-1-git-send-email-bill.fischofer@linaro.org> References: <1441238841-25105-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 3/7] linux-generic: schedule: streamline handling of event deq processing 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: bill.fischofer@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.47 as permitted sender) smtp.mailfrom=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 Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_schedule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index a88ba4d..c6619e5 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -482,11 +482,11 @@ static int schedule(odp_queue_t *out_queue, odp_event_t out_ev[], pri_q = sched->pri_queue[i][id]; ev = odp_queue_deq(pri_q); - buf = odp_buffer_from_event(ev); - if (buf == ODP_BUFFER_INVALID) + if (ev == ODP_EVENT_INVALID) continue; + buf = odp_buffer_from_event(ev); sched_cmd = odp_buffer_addr(buf); if (sched_cmd->cmd == SCHED_CMD_POLL_PKTIN) {