DPDK patches and discussions
 help / color / mirror / Atom feed
From: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
To: dev@dpdk.org, syalavarthi@marvell.com
Cc: jerinj@marvell.com, nd@arm.com,
	Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Subject: [PATCH] ml/cnxk: remove unused memory barrier macros
Date: Wed,  7 Feb 2024 03:36:05 +0000	[thread overview]
Message-ID: <20240207033605.1106673-1-honnappa.nagarahalli@arm.com> (raw)

The dmb_st abd dsb_st macros are not used in the code.
Remove them to avoid any confusion.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
---
 drivers/ml/cnxk/cn10k_ml_dev.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/ml/cnxk/cn10k_ml_dev.h b/drivers/ml/cnxk/cn10k_ml_dev.h
index cee405f3f5..ddb8b67e06 100644
--- a/drivers/ml/cnxk/cn10k_ml_dev.h
+++ b/drivers/ml/cnxk/cn10k_ml_dev.h
@@ -42,15 +42,6 @@ extern struct rte_ml_dev_ops ml_dev_dummy_ops;
 #define ML_CN10K_SP_FLAGS_OCM_NONRELOCATABLE BIT(0)
 #define ML_CN10K_SP_FLAGS_EXTENDED_LOAD_JD   BIT(1)
 
-/* Memory barrier macros */
-#if defined(RTE_ARCH_ARM)
-#define dmb_st ({ asm volatile("dmb st" : : : "memory"); })
-#define dsb_st ({ asm volatile("dsb st" : : : "memory"); })
-#else
-#define dmb_st
-#define dsb_st
-#endif
-
 struct cnxk_ml_dev;
 struct cnxk_ml_req;
 struct cnxk_ml_qp;
-- 
2.34.1


             reply	other threads:[~2024-02-07  3:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07  3:36 Honnappa Nagarahalli [this message]
2024-02-07  5:24 ` [EXT] " Srikanth Yalavarthi
2024-02-09  7:21   ` Jerin Jacob

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=20240207033605.1106673-1-honnappa.nagarahalli@arm.com \
    --to=honnappa.nagarahalli@arm.com \
    --cc=dev@dpdk.org \
    --cc=jerinj@marvell.com \
    --cc=nd@arm.com \
    --cc=syalavarthi@marvell.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 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).