DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH] eal/armv7: add support for rte pause
@ 2018-10-07  6:31 Jerin Jacob
  2018-10-07 21:09 ` Ola Liljedahl
  0 siblings, 1 reply; 6+ messages in thread
From: Jerin Jacob @ 2018-10-07  6:31 UTC (permalink / raw)
  To: Jan Viktorin, Gavin Hu; +Cc: dev, thomas, ola.liljedahl, Jerin Jacob

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-08 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-07  6:31 [dpdk-dev] [PATCH] eal/armv7: add support for rte pause Jerin Jacob
2018-10-07 21:09 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).