[PATCH 2/2] event/cnxk: remove single use of rte stdatomic
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Oct 16 20:53:10 CEST 2023
The variable operated on by the single use of rte stdatomic was not
RTE_ATOMIC(T) specified. Remove the use of stdatomic for now to fix
LLVM build with enable_stdatomic=true. event/cnxk will be converted
to rte stdatomic in a later series.
Fixes: 14a4aa9eae71 ("event/cnxk: support get remaining ticks")
Cc: pbhagavatula at marvell.com
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
drivers/event/cnxk/cnxk_tim_worker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/event/cnxk/cnxk_tim_worker.c b/drivers/event/cnxk/cnxk_tim_worker.c
index ae4bf33..944490d 100644
--- a/drivers/event/cnxk/cnxk_tim_worker.c
+++ b/drivers/event/cnxk/cnxk_tim_worker.c
@@ -193,7 +193,7 @@
return -ENOENT;
bkt = (struct cnxk_tim_bkt *)evtim->impl_opaque[1];
- sema = rte_atomic_load_explicit(&bkt->w1, rte_memory_order_acquire);
+ sema = __atomic_load_n(&bkt->w1, rte_memory_order_acquire);
if (cnxk_tim_bkt_get_hbt(sema) || !cnxk_tim_bkt_get_nent(sema))
return -ENOENT;
--
1.8.3.1
More information about the dev
mailing list