From patchwork Thu Jul 28 09:21:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 72936 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp724537qga; Thu, 28 Jul 2016 01:23:51 -0700 (PDT) X-Received: by 10.55.51.65 with SMTP id z62mr40780126qkz.14.1469694231526; Thu, 28 Jul 2016 01:23:51 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d82si7224856qkc.297.2016.07.28.01.23.51; Thu, 28 Jul 2016 01:23:51 -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 0745D617A8; Thu, 28 Jul 2016 08:23:51 +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 2F13F619AD; Thu, 28 Jul 2016 08:22:54 +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 48DB261718; Thu, 28 Jul 2016 08:22:49 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id 0815C61718 for ; Thu, 28 Jul 2016 08:22:48 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id g62so44040478lfe.3 for ; Thu, 28 Jul 2016 01:22:47 -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=f11wg5KGG03d4EFBIlxwB7ik/5kcCVna6s0TlLm9ef7yy8FUj4t9a5GT4f8zznbKPx flBYpuYwBtNRlDX7YvT7oL0qjszx5+W8eit7GbhWR03qknxGSI9J8pVOl38hl7cSwkIi wWyJChaRWWZfTxHaQ0ahfLw1qk64XbbCxl3+Wg8/sMTktjPS44nj3hf10UPahzVRgo4b m2HoJIfkHwlm+xyn0EskLYNcyKsN7OzROOOwoeQjcVy9wqXMtayuTUAlSAYQt11ZjGS+ NylUknbvhpUhuLmANh/Sg+2IIW4qRolObkzHb9PpHRHEolSTKztMpZXjgBIA2n8P41H4 SnxQ== X-Gm-Message-State: AEkoouti33Lk1I0UtBLkw4a/towdbzA9kccdAgKcXSub/BboVB5t1gpTQDyXl3a2atYrUVtBO9Y= X-Received: by 10.25.90.203 with SMTP id o194mr13452133lfb.67.1469694166931; Thu, 28 Jul 2016 01:22:46 -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 h22sm1727700lji.21.2016.07.28.01.22.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jul 2016 01:22:46 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, lng-odp@lists.linaro.org, balakrishna.garapati@linaro.org Date: Thu, 28 Jul 2016 11:21:40 +0200 Message-Id: <1469697703-52544-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469697703-52544-1-git-send-email-christophe.milard@linaro.org> References: <1469697703-52544-1-git-send-email-christophe.milard@linaro.org> X-Topics: Architecture patch Subject: [lng-odp] [API-NEXT PATCH 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)