From patchwork Fri Jul 29 06:57:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 73018 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1209210qga; Thu, 28 Jul 2016 22:59:29 -0700 (PDT) X-Received: by 10.200.45.108 with SMTP id o41mr62697388qta.100.1469771969569; Thu, 28 Jul 2016 22:59:29 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w6si11100698qka.226.2016.07.28.22.59.29; Thu, 28 Jul 2016 22:59:29 -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 42DD9680E8; Fri, 29 Jul 2016 05:59:29 +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 C384568208; Fri, 29 Jul 2016 05:58:35 +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 52D83680E7; Fri, 29 Jul 2016 05:58:32 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id 7D4FB617CF for ; Fri, 29 Jul 2016 05:58:30 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id b199so64045602lfe.0 for ; Thu, 28 Jul 2016 22:58:30 -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:in-reply-to :references; bh=BId6mm2LG/ANY3ma6nTE5cHNibDd8UCRhI5ePY4eibk=; b=e4orZ8FgHLoDBvursAJshZYyyHMRcvBZQW3BTLGLUbPQZ8Gim9Y1LJzE0h3lmw+da/ erfyIMJFkirAbBb4ITDd6uzrK7seS5Qtlmkl3nv65lzd5tPCGMLHNeVRQ+9H5ql0KBwT uwxuZgrtZmNrsl998nvbX9DuvfNVOxl2gT/rUDslif1Fl8ua7p0U4k3Gqsk+m1z4EJ3g EGrJOU7phw2PcZLMMlokPvgp6dfZg+KB7iZdHTZyk+ydESYpoEFBczsROyiXJe+G/cpd B4w8QBBxlCvZJ2Ouy1J0MQRJBeb25kFCgIMDKqcilkKwXycV01TpPbZJs/6QwZYgZcPp Q/NA== X-Gm-Message-State: AEkoousPN01wk2+1MWQO4eJvnu+cm8BkPzuWvMBLJiYgVPHEkFgdWg9QTU5G9m9PD/XvdELtYNs= X-Received: by 10.25.21.32 with SMTP id l32mr15017619lfi.158.1469771909390; Thu, 28 Jul 2016 22:58:29 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id g88sm2513472ljg.26.2016.07.28.22.58.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jul 2016 22:58:28 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, balakrishna.garapati@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Fri, 29 Jul 2016 08:57:23 +0200 Message-Id: <1469775446-28009-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469775446-28009-1-git-send-email-christophe.milard@linaro.org> References: <1469775446-28009-1-git-send-email-christophe.milard@linaro.org> X-Topics: Architecture patch Subject: [lng-odp] [API-NEXT PATCHv2 2/5] linux-generic: drv: fix align.h for new arch structure 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The arch directory structure has been changed. The linux-generic DRV align.h file, which makes use of the cache line size defined in this arch directory is updated here to match this new structure. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp/drv/align.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/platform/linux-generic/include/odp/drv/align.h b/platform/linux-generic/include/odp/drv/align.h index eded2e3..7636f89 100644 --- a/platform/linux-generic/include/odp/drv/align.h +++ b/platform/linux-generic/include/odp/drv/align.h @@ -17,6 +17,8 @@ extern "C" { #endif +#include + /** @ingroup odpdrv_compiler_optim * @{ */ @@ -31,16 +33,12 @@ extern "C" { #define ODPDRV_FIELD_SIZEOF(type, member) sizeof(((type *)0)->member) -#if defined __arm__ || defined __aarch64__ - -#define ODPDRV_CACHE_LINE_SIZE 64 - -#endif - #else #error Non-gcc compatible compiler #endif +#define ODPDRV_CACHE_LINE_SIZE _ODP_CACHE_LINE_SIZE + #define ODPDRV_PAGE_SIZE 4096 #define ODPDRV_ALIGNED_CACHE ODPDRV_ALIGNED(ODPDRV_CACHE_LINE_SIZE)