From: Matt Turner <mattst88@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-alpha@vger.kernel.org
Subject: [PULL] alpha.git
Date: Sun, 30 Aug 2015 18:13:07 -0700 [thread overview]
Message-ID: <20150831011306.GA14041@ivybridge> (raw)
[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]
Hi Linus,
Please pull a single patch for alpha, one that enables
ARCH_USE_CMPXCHG_LOCKREF and offers around an 8% performance
improvement on a little benchmark that you wrote.
Thanks,
Matt
The following changes since commit 64291f7db5bd8150a74ad2036f1037e6a0428df2:
Linux 4.2 (2015-08-30 11:34:09 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha.git for-linus
for you to fetch changes up to 8f8dcb3f7fe4febbfa96e64d4ad47de958c5cc34:
alpha: select CONFIG_ARCH_USE_CMPXCHG_LOCKREF. (2015-08-30 18:01:16 -0700)
----------------------------------------------------------------
Matt Turner (1):
alpha: select CONFIG_ARCH_USE_CMPXCHG_LOCKREF.
arch/alpha/Kconfig | 1 +
arch/alpha/include/asm/spinlock.h | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index bf9e9d3..f515a4d 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -3,6 +3,7 @@ config ALPHA
default y
select ARCH_MIGHT_HAVE_PC_PARPORT
select ARCH_MIGHT_HAVE_PC_SERIO
+ select ARCH_USE_CMPXCHG_LOCKREF
select HAVE_AOUT
select HAVE_IDE
select HAVE_OPROFILE
diff --git a/arch/alpha/include/asm/spinlock.h b/arch/alpha/include/asm/spinlock.h
index 37b570d..fed9c6f 100644
--- a/arch/alpha/include/asm/spinlock.h
+++ b/arch/alpha/include/asm/spinlock.h
@@ -16,6 +16,11 @@
#define arch_spin_unlock_wait(x) \
do { cpu_relax(); } while ((x)->lock)
+static inline int arch_spin_value_unlocked(arch_spinlock_t lock)
+{
+ return lock.lock == 0;
+}
+
static inline void arch_spin_unlock(arch_spinlock_t * lock)
{
mb();
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2015-08-31 1:13 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-31 1:13 Matt Turner [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-02-25 20:40 [PULL] alpha.git Matt Turner
2023-02-25 20:51 ` Linus Torvalds
2023-02-25 21:10 ` pr-tracker-bot
2021-07-30 3:08 Matt Turner
2021-07-30 5:13 ` pr-tracker-bot
2020-06-13 0:57 Matt Turner
2020-06-13 18:00 ` pr-tracker-bot
2019-02-11 4:46 Matt Turner
2019-02-11 18:35 ` pr-tracker-bot
2018-12-30 22:25 Matt Turner
2018-12-31 18:05 ` pr-tracker-bot
2018-05-23 4:02 Matt Turner
2018-04-08 18:44 Matt Turner
2018-04-09 16:13 ` Linus Torvalds
2018-04-09 16:46 ` Matt Turner
2018-02-02 19:52 Matt Turner
2018-01-21 2:25 Matt Turner
2018-01-23 10:23 ` Mikulas Patocka
2018-01-23 17:56 ` Matt Turner
2018-01-24 9:55 ` Mikulas Patocka
2017-09-04 20:50 Matt Turner
2017-08-29 19:35 Matt Turner
2015-05-26 20:09 Matt Turner
2014-01-31 17:26 Matt Turner
2013-11-20 19:26 Matt Turner
2013-07-22 17:11 Matt Turner
2012-05-24 18:43 Matt Turner
2012-05-05 19:14 Matt Turner
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=20150831011306.GA14041@ivybridge \
--to=mattst88@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.