From: Andreas Larsson <andreas@gaisler.com>
To: David Miller <davem@davemloft.net>, sparclinux@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, software@gaisler.com
Subject: [PATCH 0/2] sparc32,leon: Allow and use CAS for atomic operations for LEON
Date: Tue, 14 Nov 2017 15:03:41 +0100 [thread overview]
Message-ID: <1510668223-18484-1-git-send-email-andreas@gaisler.com> (raw)
The first patch makes sure that CAS can be assembled and the second
patch adds the configurable possibility to use the CASA instruction
rather than spinlock based emulation for atomic operations.
Andreas Larsson (2):
sparc32,leon: Build with -mcpu=leon3 for SPARC_LEON
sparc32,leon: Add support for atomic operations with CAS
arch/sparc/Kconfig | 17 ++++-
arch/sparc/Makefile | 10 ++-
arch/sparc/include/asm/atomic_32.h | 55 ++++++++++++++-
arch/sparc/include/asm/bitops_32.h | 13 ++++
arch/sparc/include/asm/cmpxchg_32.h | 37 ++++++++++
arch/sparc/lib/Makefile | 4 +-
arch/sparc/lib/atomic_cas_32.S | 69 +++++++++++++++++++
arch/sparc/lib/bitops_cas_32.S | 130 ++++++++++++++++++++++++++++++++++++
8 files changed, 326 insertions(+), 9 deletions(-)
create mode 100644 arch/sparc/lib/atomic_cas_32.S
create mode 100644 arch/sparc/lib/bitops_cas_32.S
--
2.8.0
next reply other threads:[~2017-11-14 14:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 14:03 Andreas Larsson [this message]
2017-11-14 14:03 ` [PATCH 1/2] sparc32,leon: Build with -mcpu=leon3 for SPARC_LEON Andreas Larsson
2017-11-29 18:38 ` David Miller
2017-11-14 14:03 ` [PATCH 2/2] sparc32,leon: Add support for atomic operations with CAS Andreas Larsson
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=1510668223-18484-1-git-send-email-andreas@gaisler.com \
--to=andreas@gaisler.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=software@gaisler.com \
--cc=sparclinux@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
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
all inboxes | Powered by JetHome®