All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
To: Jan Viktorin <viktorin@rehivetech.com>, Gavin Hu <gavin.hu@arm.com>
Cc: dev@dpdk.org, thomas@monjalon.net, ola.liljedahl@arm.com,
	Jerin Jacob <jerin.jacob@caviumnetworks.com>
Subject: [PATCH] eal/armv7: add support for rte pause
Date: Sun,  7 Oct 2018 12:01:27 +0530	[thread overview]
Message-ID: <20181007063127.27960-1-jerin.jacob@caviumnetworks.com> (raw)

Add support for rte_pause() implementation for armv7.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---

The reference implementation for Linux's cpu_relax() for armv7 is at
https://elixir.bootlin.com/linux/latest/source/arch/arm/include/asm/processor.h#L100

---
 lib/librte_eal/common/include/arch/arm/rte_pause_32.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/include/arch/arm/rte_pause_32.h b/lib/librte_eal/common/include/arch/arm/rte_pause_32.h
index d4768c7a9..9b856e0cf 100644
--- a/lib/librte_eal/common/include/arch/arm/rte_pause_32.h
+++ b/lib/librte_eal/common/include/arch/arm/rte_pause_32.h
@@ -9,11 +9,13 @@
 extern "C" {
 #endif
 
-#include <rte_common.h>
+#include <rte_atomic.h>
+
 #include "generic/rte_pause.h"
 
 static inline void rte_pause(void)
 {
+	rte_compiler_barrier();
 }
 
 #ifdef __cplusplus
-- 
2.19.0

             reply	other threads:[~2018-10-07  6:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-07  6:31 Jerin Jacob [this message]
2018-10-07 21:09 ` [PATCH] eal/armv7: add support for rte pause Ola Liljedahl
2018-10-08  6:27   ` Jerin Jacob
2018-10-08  8:25     ` Ola Liljedahl
2018-10-08  8:41       ` Jerin Jacob
2018-10-08 10:51         ` Ola Liljedahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181007063127.27960-1-jerin.jacob@caviumnetworks.com \
    --to=jerin.jacob@caviumnetworks.com \
    --cc=dev@dpdk.org \
    --cc=gavin.hu@arm.com \
    --cc=ola.liljedahl@arm.com \
    --cc=thomas@monjalon.net \
    --cc=viktorin@rehivetech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.