Backports Archive on lore.kernel.org
 help / color / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: backports@vger.kernel.org
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Subject: [PATCH 2/4] backports: Add smp_acquire__after_ctrl_dep()
Date: Tue, 26 Mar 2019 16:11:36 +0100
Message-ID: <20190326151138.4141-2-hauke@hauke-m.de> (raw)
In-Reply-To: <20190326151138.4141-1-hauke@hauke-m.de>

smp_acquire__after_ctrl_dep() was introduced in kernel 4.8 in upstream
Linux commit 33ac279677d ("locking/barriers: Introduce
smp_acquire__after_ctrl_dep()") and is used by backports lib-refcount.c
implementation now.

This just adds the default implementation to backports.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/backport-include/asm/barrier.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/backport-include/asm/barrier.h b/backport/backport-include/asm/barrier.h
index 9e1e1f11..bca05588 100644
--- a/backport/backport-include/asm/barrier.h
+++ b/backport/backport-include/asm/barrier.h
@@ -19,4 +19,8 @@
 #define smp_mb__after_atomic smp_mb__after_clear_bit
 #endif
 
+#ifndef smp_acquire__after_ctrl_dep
+#define smp_acquire__after_ctrl_dep()		smp_rmb()
+#endif
+
 #endif /* __BACKPORT_ASM_BARRIER_H */
-- 
2.20.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in

  reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-26 15:11 [PATCH 1/4] backports: Add rhashtable_lookup_get_insert_fast() Hauke Mehrtens
2019-03-26 15:11 ` Hauke Mehrtens [this message]
2019-03-26 15:11 ` [PATCH 3/4] backports: Add missing include for brcmfmac Hauke Mehrtens
2019-03-26 15:11 ` [PATCH 4/4] backports: Build CONFIG_MT7603E only for kernel >= 4.2 Hauke Mehrtens

Reply instructions:

You may reply publically 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=20190326151138.4141-2-hauke@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=backports@vger.kernel.org \
    /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

Backports Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/backports/0 backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ https://lore.kernel.org/backports \
		backports@vger.kernel.org backports@archiver.kernel.org
	public-inbox-index backports


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.backports


AGPL code for this site: git clone https://public-inbox.org/ public-inbox