From: Nick Piggin <npiggin@suse.de>
To: Andi Kleen <ak@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@elte.hu>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [rfc][patch 2/2] x86_64: FIFO ticket spinlocks
Date: Tue, 17 Jul 2007 17:08:12 +0200 [thread overview]
Message-ID: <20070717150812.GC19092@wotan.suse.de> (raw)
In-Reply-To: <200707171625.42235.ak@suse.de>
On Tue, Jul 17, 2007 at 04:25:42PM +0200, Andi Kleen wrote:
>
>
> When you revamp everything I guess it would make the locks
> easier to read to just put them into a .S file? They're
> out of line anyways.
It is a bit tricky because of the way kernel/spinlock.c uses
the the inline asm (that, and unlocks are inlined), and some
of the debugging code.
Also, I'm not exactly sure what is the best way to clean up
spinlocks, if it is even possible. I'm afraid to touch it
more than I have to :)
>
> In general they look ok.
>
> >
> > static inline void __raw_spin_unlock(raw_spinlock_t *lock)
> > {
> > - asm volatile("movl $1,%0" :"=m" (lock->slock) :: "memory");
> > + __asm__ __volatile__(
>
> Minor nit: please don't use these underlined keywords. They just look
> ugly and asm volatile works as well.
OK, I like that better too. I didn't even realise I changed this
because it is mechanical to do the __. That's good to know and I'll
change my habit now.
prev parent reply other threads:[~2007-07-17 15:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 4:59 [rfc][patch 1/2] spinlock: lockbreak cleanups Nick Piggin
2007-07-16 5:01 ` [rfc][patch 2/2] x86_64: FIFO ticket spinlocks Nick Piggin
2007-07-16 9:16 ` Alan Cox
2007-07-16 9:24 ` Nick Piggin
2007-07-16 9:26 ` Ingo Molnar
2007-07-16 9:45 ` Nick Piggin
2007-07-16 9:49 ` Ingo Molnar
2007-07-16 10:18 ` Nick Piggin
2007-07-17 14:25 ` Andi Kleen
2007-07-17 15:08 ` Nick Piggin [this message]
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=20070717150812.GC19092@wotan.suse.de \
--to=npiggin@suse.de \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--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.