DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] eal/arm: use stdatomic api in rte_pause
@ 2024-05-03 18:35 Daniel Gregory
  2024-05-06 16:09 ` Tyler Retzlaff
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Gregory @ 2024-05-03 18:35 UTC (permalink / raw)
  To: Ruifeng Wang; +Cc: dev, Punit Agrawal, Liang Ma, Daniel Gregory

Missed during commit 1ec6a845b5cb
("eal: use stdatomic API in public headers")

Signed-off-by: Daniel Gregory <daniel.gregory@bytedance.com>
---
 lib/eal/arm/include/rte_pause_64.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/eal/arm/include/rte_pause_64.h b/lib/eal/arm/include/rte_pause_64.h
index 5cb8b59056..9e2dbf3531 100644
--- a/lib/eal/arm/include/rte_pause_64.h
+++ b/lib/eal/arm/include/rte_pause_64.h
@@ -11,6 +11,7 @@ extern "C" {
 #endif
 
 #include <rte_common.h>
+#include <rte_stdatomic.h>
 
 #ifdef RTE_ARM_USE_WFE
 #define RTE_WAIT_UNTIL_EQUAL_ARCH_DEFINED
@@ -149,7 +150,7 @@ static inline void rte_pause(void)
 
 static __rte_always_inline void
 rte_wait_until_equal_16(volatile uint16_t *addr, uint16_t expected,
-		int memorder)
+		rte_memory_order memorder)
 {
 	uint16_t value;
 
@@ -168,7 +169,7 @@ rte_wait_until_equal_16(volatile uint16_t *addr, uint16_t expected,
 
 static __rte_always_inline void
 rte_wait_until_equal_32(volatile uint32_t *addr, uint32_t expected,
-		int memorder)
+		rte_memory_order memorder)
 {
 	uint32_t value;
 
@@ -187,7 +188,7 @@ rte_wait_until_equal_32(volatile uint32_t *addr, uint32_t expected,
 
 static __rte_always_inline void
 rte_wait_until_equal_64(volatile uint64_t *addr, uint64_t expected,
-		int memorder)
+		rte_memory_order memorder)
 {
 	uint64_t value;
 
-- 
2.39.2


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

* Re: [PATCH] eal/arm: use stdatomic api in rte_pause
  2024-05-03 18:35 [PATCH] eal/arm: use stdatomic api in rte_pause Daniel Gregory
@ 2024-05-06 16:09 ` Tyler Retzlaff
  0 siblings, 0 replies; 2+ messages in thread
From: Tyler Retzlaff @ 2024-05-06 16:09 UTC (permalink / raw)
  To: Daniel Gregory; +Cc: Ruifeng Wang, dev, Punit Agrawal, Liang Ma

On Fri, May 03, 2024 at 07:35:48PM +0100, Daniel Gregory wrote:
> Missed during commit 1ec6a845b5cb
> ("eal: use stdatomic API in public headers")
> 
> Signed-off-by: Daniel Gregory <daniel.gregory@bytedance.com>
> ---

Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>


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

end of thread, other threads:[~2024-05-06 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-03 18:35 [PATCH] eal/arm: use stdatomic api in rte_pause Daniel Gregory
2024-05-06 16:09 ` Tyler Retzlaff

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).