From patchwork Tue Jul 26 02:56:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Brooks X-Patchwork-Id: 72759 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1456026qga; Mon, 25 Jul 2016 20:01:36 -0700 (PDT) X-Received: by 10.200.37.60 with SMTP id 57mr34060236qtm.82.1469502096357; Mon, 25 Jul 2016 20:01:36 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r81si19728876qke.5.2016.07.25.20.01.36; Mon, 25 Jul 2016 20:01:36 -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 0BD3C686BE; Tue, 26 Jul 2016 03:01:36 +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_H2, 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 29133684CD; Tue, 26 Jul 2016 02:57:44 +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 A49E8617B0; Tue, 26 Jul 2016 02:57:40 +0000 (UTC) Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by lists.linaro.org (Postfix) with ESMTPS id 9AA6E686CF for ; Tue, 26 Jul 2016 02:56:39 +0000 (UTC) Received: by mail-io0-f175.google.com with SMTP id b62so190394159iod.3 for ; Mon, 25 Jul 2016 19:56:39 -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=NJmpnMpJQPFm0qf4fFKGdIlhDx7zT6o/7g73lpnI4pI=; b=Kkd3i+RdRrrg5WJq9fBFILv4VOMIh5F/bm8dfyFv1qzBU4G7h7kmLNm0+TVNXQoFTs WpumA2Z0pSGZPteSn83QbjgLjRCDcWKW2nwfxRJEmc4rXSphEw+APhYlRnYFbUcToJvx yM8+WOzTEp+GUCFmO6NaJrWGXZe1pYZs6+UffuQ664TpthoI8TEkUKMPhw65WN2//tH4 qttI3RcXbzpiRyet6BL+UB9Kd1fBvQRE7DWGeRL9UBzxAHl6CJQmJnDUNW7TkISwNG1d 1FrP0hepbdmMDyCiFsrzohEql/DC885619rKN3fcAaxzK9tA8cbhjF11sJUyiNIyX/yi 3NUA== X-Gm-Message-State: AEkooutCyZexZ0d9PRVWuZSbhh5+nl7JzFzdJhmurOtA/yzVauRboqzqefg+Dqap0wEBpsHOaSg= X-Received: by 10.157.16.104 with SMTP id o37mr10359165oto.96.1469501799238; Mon, 25 Jul 2016 19:56:39 -0700 (PDT) Received: from localhost.localdomain (68-248-140-212.lightspeed.austtx.sbcglobal.net. [68.248.140.212]) by smtp.gmail.com with ESMTPSA id z189sm12624679oig.29.2016.07.25.19.56.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 19:56:38 -0700 (PDT) From: Brian Brooks To: lng-odp@lists.linaro.org Date: Mon, 25 Jul 2016 21:56:20 -0500 Message-Id: <20160726025625.7343-8-brian.brooks@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160726025625.7343-1-brian.brooks@linaro.org> References: <20160726025625.7343-1-brian.brooks@linaro.org> X-Topics: Architecture patch Subject: [lng-odp] [PATCH v3 07/12] arm: _odp_cpu_pause() for aarch64 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" Signed-off-by: Brian Brooks --- platform/linux-generic/arch/arm/cpu_arch.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.9.0 diff --git a/platform/linux-generic/arch/arm/cpu_arch.h b/platform/linux-generic/arch/arm/cpu_arch.h index 0d52616..bdd3335 100644 --- a/platform/linux-generic/arch/arm/cpu_arch.h +++ b/platform/linux-generic/arch/arm/cpu_arch.h @@ -15,6 +15,9 @@ extern "C" { static inline void _odp_cpu_pause(void) { +#if defined(__aarch64__) + __asm__ volatile("yield"); +#endif } #ifdef __cplusplus