From patchwork Thu Sep 3 15:16:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53031 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 1992D22E23 for ; Thu, 3 Sep 2015 15:19:20 +0000 (UTC) Received: by lbcjc2 with SMTP id jc2sf15716073lbc.0 for ; Thu, 03 Sep 2015 08:19:19 -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=Lxi12tKJK5q0ABHMyFsvsELesErRMWRgHRZiCIm131jtEDOkU+tQzq97KC2qHLGwQN ia1OvrZt2wALn+RRYzmNU7Mn1BGU9bisXDQPSyoCzcLvT8oPpNEF47hXV1DbIv04P++n QOfuWdvgo9JuytNXgIiQ09uU3J7SgrNmVdSJE688eBWLfWr8oZXODT+a6wHS695oATJi HbzXhWa92Zak1EaqevBWX8fFFfnOkLVyfxZ4P558ZqPiJtD6Ib/GFIj5CMWqQbYIQ5j/ 8M5I1z0J+FoTpGy+54i6pt5QOQUKBuJBzNbs8jSpDBDGa3VDBB1ySnpaPKahXqQiOM/e XmKw== X-Gm-Message-State: ALoCoQltGKqcog2IP65ttNHWBKv5uRVBsESo0/Ys7UhUAS6QXONDphDDQ4MgR2xf2QVLV4HSlpsM X-Received: by 10.112.99.37 with SMTP id en5mr10889590lbb.7.1441293559025; Thu, 03 Sep 2015 08:19:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.70 with SMTP id o6ls248366laj.2.gmail; Thu, 03 Sep 2015 08:19:18 -0700 (PDT) X-Received: by 10.112.91.196 with SMTP id cg4mr22747255lbb.10.1441293558802; Thu, 03 Sep 2015 08:19:18 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id l13si23376120laa.174.2015.09.03.08.19.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 08:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbcao8 with SMTP id ao8so26322048lbc.3 for ; Thu, 03 Sep 2015 08:19:18 -0700 (PDT) X-Received: by 10.152.22.133 with SMTP id d5mr21944230laf.112.1441293558698; Thu, 03 Sep 2015 08:19:18 -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 yn10csp1343462lbb; Thu, 3 Sep 2015 08:19:17 -0700 (PDT) X-Received: by 10.140.201.7 with SMTP id w7mr29890905qha.46.1441293557272; Thu, 03 Sep 2015 08:19:17 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q4si30227198qha.35.2015.09.03.08.19.16; Thu, 03 Sep 2015 08:19:17 -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 61A2861A2B; Thu, 3 Sep 2015 15:19:16 +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_H2, 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 34B6E61A41; Thu, 3 Sep 2015 15:17:00 +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 634D5619F1; Thu, 3 Sep 2015 15:16:55 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by lists.linaro.org (Postfix) with ESMTPS id 3BC56619F1 for ; Thu, 3 Sep 2015 15:16:49 +0000 (UTC) Received: by oiww128 with SMTP id w128so29437614oiw.2 for ; Thu, 03 Sep 2015 08:16:48 -0700 (PDT) X-Received: by 10.202.74.10 with SMTP id x10mr11529882oia.98.1441293408669; Thu, 03 Sep 2015 08:16:48 -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 e73sm1525294oib.3.2015.09.03.08.16.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Sep 2015 08:16:48 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org, maxim.uvarov@linaro.org Date: Thu, 3 Sep 2015 10:16:35 -0500 Message-Id: <1441293400-28777-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441293400-28777-1-git-send-email-bill.fischofer@linaro.org> References: <1441293400-28777-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 3/8] 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.217.176 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) {