From patchwork Fri Jun 10 00:09:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 69736 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp33791qgf; Thu, 9 Jun 2016 17:09:37 -0700 (PDT) X-Received: by 10.140.215.136 with SMTP id l130mr6098378qhb.1.1465517377652; Thu, 09 Jun 2016 17:09:37 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k94si4806810qte.26.2016.06.09.17.09.37; Thu, 09 Jun 2016 17:09:37 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 482BA680B7; Fri, 10 Jun 2016 00:09:37 +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 D0943680AD; Fri, 10 Jun 2016 00:09:33 +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 9FF11680B0; Fri, 10 Jun 2016 00:09:32 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id B2833680AB for ; Fri, 10 Jun 2016 00:09:31 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id p204so88979660oih.3 for ; Thu, 09 Jun 2016 17:09:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=alZ7TsGwfEvDws8jryVqUXJTLwmSA5R484vOMMseKQY=; b=MYEdP76UV2u/IAh9LREk92NsnSVW8bwosGCPse1Z3W/IWu8PE1ELWsVS18VpyQwpH9 6RG85u+3RDigxkNxORvH9ALcsNnvBX+QhzwXpQtSHgaIOhWKYlz2p3GVJrgl/ImZmbdg 1Hd7lJKdMu4d8Nr3OU8wQzuUYsi91MblzqWC6PmVAIESfV0spp9oqfL+FsEobHdgHgu6 ix6x7B6UqiBaS7PvormjR12TsB/R6eRszl7FkCbmNRyExDRqC0SYuXfypYgFjyEjGZi/ nMiD88gNdcYXgoRWYhDhLLD0wmlgtN2/IiUij9qs8eRW5yXLRkBul+kpb56auHllQbw5 wfvg== X-Gm-Message-State: ALyK8tIWAz42z9ctMwyY4U36asm9oRT7hHNXRrktNQXfYoA6HHZEsphsogRD7OG6kM8Ge5EK3LI= X-Received: by 10.157.44.245 with SMTP id e50mr7134294otd.37.1465517371229; Thu, 09 Jun 2016 17:09:31 -0700 (PDT) Received: from localhost.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id 19sm2461239oti.32.2016.06.09.17.09.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jun 2016 17:09:30 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 9 Jun 2016 19:09:28 -0500 Message-Id: <1465517368-12536-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 X-Topics: timers patch Subject: [lng-odp] [PATCH] linux-generic: timer: correct definition of ODP_TIMEOUT_INVALID X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Resolve bug https://bugs.linaro.org/show_bug.cgi?id=2316 by changing the typedef of ODP_TIMEOUT_INVALID to be 0xffffffff to be consistent with other buffer types. This enables pool 0 to be used as a timeout pool. Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp/api/plat/timer_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp/api/plat/timer_types.h b/platform/linux-generic/include/odp/api/plat/timer_types.h index 93ea162..68d6f6f 100644 --- a/platform/linux-generic/include/odp/api/plat/timer_types.h +++ b/platform/linux-generic/include/odp/api/plat/timer_types.h @@ -36,7 +36,7 @@ typedef ODP_HANDLE_T(odp_timer_t); typedef ODP_HANDLE_T(odp_timeout_t); -#define ODP_TIMEOUT_INVALID _odp_cast_scalar(odp_timeout_t, 0) +#define ODP_TIMEOUT_INVALID _odp_cast_scalar(odp_timeout_t, 0xffffffff) /** * @}