From patchwork Fri Jan 29 11:22:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Zhang X-Patchwork-Id: 60785 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1053609lbb; Fri, 29 Jan 2016 03:31:10 -0800 (PST) X-Received: by 10.50.110.5 with SMTP id hw5mr9390149igb.65.1454067070482; Fri, 29 Jan 2016 03:31:10 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o10si11324686ige.79.2016.01.29.03.31.10; Fri, 29 Jan 2016 03:31:10 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BF1CA61A0A; Fri, 29 Jan 2016 11:31:09 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=e246P0pA; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,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 885A261D5D; Fri, 29 Jan 2016 11:30:05 +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 D3C9F616CA; Fri, 29 Jan 2016 11:30:01 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by lists.linaro.org (Postfix) with ESMTPS id BE606616CA for ; Fri, 29 Jan 2016 11:30:00 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id yy13so40138864pab.3 for ; Fri, 29 Jan 2016 03:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aj5Rt9lrhrcm3LkSifYqXIgPbOjoaeMHolm58HThuUg=; b=e246P0pAAfc35gUvoDseXJpNVe7lJ10HS4NpKAn3v78XDxUcAN8SuUjVRt4tgMRYaA x8SqSd7YBEShRG33fSmfUfUXOg0DTPpZcAr0lryQ+s47KRN+1nkj6tTBa3Mw4Jt6cXIX a9kVjMPLzX8clHMdXsi6mrL2MK//eFIrjqPu8= 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=aj5Rt9lrhrcm3LkSifYqXIgPbOjoaeMHolm58HThuUg=; b=k2Vzd3enQvdqScZZFbIWiSK+xNPNTOxm2Bw+t70QfA7IXhNM4MfizLqso6Ju4S0FP3 5Bjmz0DGpxDdf2xdfIBEWXydD8kg3HlJWyPppU1K2qxVfctCCI9nukFYZc0S4PwXmQqf MqSlHNdeM7VnW2pZojVCNva83+syEzKH89KnETOVU/Yfg9eT/rVw7J8nfAhiZ7wDeKYi ZC1OqaZ2LOwC06f9OaMlE987a+k68wnU+VtN1dOwrMXmqxW0c5jKzaTPGDdQHjMeYLBF nnylW/rgmyk3vKoUiksXNQvuMvQCC0ep9Du/oH6oJ0UQr4hecRf5VX3ueC9u06uj6Z8a Nfrg== X-Gm-Message-State: AG10YOSqC4bHLs0CZ+I9Z8ury3MMuMlqRdljydGui3f7OmSH9lJJUj14A+O01pU/REyjcbCE46k= X-Received: by 10.66.139.234 with SMTP id rb10mr12431429pab.82.1454067000149; Fri, 29 Jan 2016 03:30:00 -0800 (PST) Received: from ubuntu1504.ap.freescale.net (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id n8sm22957133pfj.46.2016.01.29.03.29.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jan 2016 03:29:59 -0800 (PST) From: hongbo.zhang@linaro.org To: lng-odp@lists.linaro.org Date: Fri, 29 Jan 2016 19:22:12 +0800 Message-Id: <1454066534-32694-3-git-send-email-hongbo.zhang@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1454066534-32694-1-git-send-email-hongbo.zhang@linaro.org> References: <1454066534-32694-1-git-send-email-hongbo.zhang@linaro.org> X-Topics: Architecture patch Subject: [lng-odp] [PATCH v2 API-NEXT 2/4] linux-generic: separate MIPS ODP_CACHE_LINE_SIZE to its arch file 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" From: Hongbo Zhang Currently all ODP_CACHE_LINE_SIZE macros for different architectures are held in one header file, they should be moved to their own arch file. This patch moves ODP_CACHE_LINE_SIZE for MIPS. Signed-off-by: Hongbo Zhang --- platform/linux-generic/arch/mips64/odp/cpu_arch.h | 2 ++ platform/linux-generic/include/odp/align.h | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/linux-generic/arch/mips64/odp/cpu_arch.h b/platform/linux-generic/arch/mips64/odp/cpu_arch.h index 3bfa0dc..3e4a1ed 100644 --- a/platform/linux-generic/arch/mips64/odp/cpu_arch.h +++ b/platform/linux-generic/arch/mips64/odp/cpu_arch.h @@ -11,6 +11,8 @@ extern "C" { #endif +#define ODP_CACHE_LINE_SIZE 128 + static inline void odp_cpu_pause(void) { __asm__ __volatile__ ("nop"); diff --git a/platform/linux-generic/include/odp/align.h b/platform/linux-generic/include/odp/align.h index 4e045c6..6aba925 100644 --- a/platform/linux-generic/include/odp/align.h +++ b/platform/linux-generic/include/odp/align.h @@ -35,10 +35,6 @@ extern "C" { #define ODP_CACHE_LINE_SIZE 64 -#elif defined __OCTEON__ - -#define ODP_CACHE_LINE_SIZE 128 - #elif defined __powerpc__ #define ODP_CACHE_LINE_SIZE 64