Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chenxi Mao <maochenxi@eswin.com>
To: paul.walmsley@sifive.com
Cc: maochenxi@eswin.com, linux-riscv@lists.infradead.org,
	aou@eecs.berkeley.edu, palmer@dabbelt.com,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default
Date: Tue,  2 Jun 2020 08:54:28 +0800	[thread overview]
Message-ID: <20200602005428.18087-1-maochenxi@eswin.com> (raw)

Enable ARCH_SUPPORTS_ATOMIC_RMW by default to support
osq_lock in mutex/rwsem locks.
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a31e1a41913a..cbdc605d20d9 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -68,6 +68,7 @@ config RISCV
 	select ARCH_HAS_GCOV_PROFILE_ALL
 	select HAVE_COPY_THREAD_TLS
 	select HAVE_ARCH_KASAN if MMU && 64BIT
+	select ARCH_SUPPORTS_ATOMIC_RMW
 
 config ARCH_MMAP_RND_BITS_MIN
 	default 18 if 64BIT
-- 
2.25.1



             reply	other threads:[~2020-06-02  0:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02  0:54 Chenxi Mao [this message]
2020-06-05  0:01 ` [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default Palmer Dabbelt
  -- strict thread matches above, loose matches on Subject: below --
2020-06-05  3:34 Chenxi Mao

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=20200602005428.18087-1-maochenxi@eswin.com \
    --to=maochenxi@eswin.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.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