From patchwork Wed May 4 16:47:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 67161 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp291617qge; Wed, 4 May 2016 09:47:35 -0700 (PDT) X-Received: by 10.107.62.197 with SMTP id l188mr11716139ioa.185.1462380455535; Wed, 04 May 2016 09:47:35 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y20si6057074igr.26.2016.05.04.09.47.34; Wed, 04 May 2016 09:47:35 -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 937F8615CB; Wed, 4 May 2016 16:47:34 +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 DE6406156D; Wed, 4 May 2016 16:47:30 +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 584D7615BD; Wed, 4 May 2016 16:47:28 +0000 (UTC) Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by lists.linaro.org (Postfix) with ESMTPS id 87B80611FE for ; Wed, 4 May 2016 16:47:27 +0000 (UTC) Received: by mail-oi0-f54.google.com with SMTP id x19so72233147oix.2 for ; Wed, 04 May 2016 09:47:27 -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=IvyhUGwOPRV16L1Skrcf9hXYhLmCKFU2sSBc7f0k7tY=; b=Kj3sMZPqG86dzLdAcjyagiQiTkcRE+eakZu0HreyKBVJgusSS+11N86A9AHVBUWJXe Vusq9lNsmAQjFfDwsEs5uh9bh4sObCA6xpsHVNyft3jAV7kcJ4h1/fKzq/6OOuix6y4w 6jlJ+1DbIe9jRSO/CozjVFHuGtLrxrXqkBVrTzwdUXTwDW52GTDJ5Wp3N3Tsv1HjAoOj iX8JZwWM7qPnxHX3KIuOlZjXuefzUF1bl9iOA69h4Qws91fUWwtTJpn2+3fF4B9mZH/R J2i9CNXtpaSKSoMP4d6NfX2f3llUlar2pWlvSyMtoivK9lr7mVzyT+h3r+yJTG4c8Hb5 znog== X-Gm-Message-State: AOPr4FVr3w8/RaqVzS7wxpRfxPMMUiGYdwNYe83xzVSwbv2q9yzNeCZ3BMcoLXHOOL7ssyVRuH8= X-Received: by 10.157.14.236 with SMTP id 99mr4501773otj.83.1462380446911; Wed, 04 May 2016 09:47:26 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id n62sm1666510oig.11.2016.05.04.09.47.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 May 2016 09:47:26 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 4 May 2016 11:47:24 -0500 Message-Id: <1462380444-11992-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: Architecture patch Subject: [lng-odp] [PATCH] linux-generic: arch: add missing cache line size definition for linux 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" Use a default cache line size of 64 for otherwise unrecognized linux platforms. This resolves bug https://bugs.linaro.org/show_bug.cgi?id=2218 Reported-by: Matias Elo Signed-off-by: Bill Fischofer Reviewed-by: Mike Holmes --- platform/linux-generic/arch/linux/odp/api/cpu_arch.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform/linux-generic/arch/linux/odp/api/cpu_arch.h b/platform/linux-generic/arch/linux/odp/api/cpu_arch.h index 1c79f87..29f8889 100644 --- a/platform/linux-generic/arch/linux/odp/api/cpu_arch.h +++ b/platform/linux-generic/arch/linux/odp/api/cpu_arch.h @@ -11,6 +11,16 @@ extern "C" { #endif +/** @ingroup odp_compiler_optim + * @{ + */ + +#define ODP_CACHE_LINE_SIZE 64 + +/** + * @} + */ + static inline void odp_cpu_pause(void) { }