From: David Howells <dhowells@redhat.com>
To: Anton Blanchard <anton@samba.org>
Cc: David Howells <dhowells@redhat.com>,
linuxppc-dev@ozlabs.org, linuxppc64-dev@ozlabs.org
Subject: Re: PATCH powerpc Merge asm-ppc*/rwsem.h
Date: Fri, 23 Sep 2005 08:52:30 +0100 [thread overview]
Message-ID: <1280.1127461950@warthog.cambridge.redhat.com> (raw)
In-Reply-To: <20050923074413.GD19971@krispykreme>
Anton Blanchard <anton@samba.org> wrote:
> > The counter should be "signed long" really.
>
> Agreed, we should move to a 64bit count.
With a 64-bit counter, the constants should be:
#define RWSEM_UNLOCKED_VALUE 0x0000000000000000L
#define RWSEM_ACTIVE_BIAS 0x0000000000000001L
#define RWSEM_ACTIVE_MASK 0x00000000ffffffffL
#define RWSEM_WAITING_BIAS (-0x0000000100000000L)
#define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
Just like in the asm-s390/rwsem.h.
David
next prev parent reply other threads:[~2005-09-23 7:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 19:55 PATCH powerpc Merge asm-ppc*/rwsem.h Jon Loeliger
2005-09-23 7:32 ` David Howells
2005-09-23 7:44 ` Anton Blanchard
2005-09-23 7:52 ` David Howells [this message]
2005-09-23 12:52 ` Jon Loeliger
2005-09-23 14:09 ` David Howells
2005-09-24 0:46 ` Paul Mackerras
2005-09-26 11:38 ` David Howells
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=1280.1127461950@warthog.cambridge.redhat.com \
--to=dhowells@redhat.com \
--cc=anton@samba.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc64-dev@ozlabs.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.