All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reto Baettig <baettig@scs.ch>
To: linux-kernel@vger.kernel.org
Subject: MICROPATCH: define rwlock_init() for ALPHA platforms
Date: Thu, 03 May 2001 11:38:03 +0200	[thread overview]
Message-ID: <3AF126FB.1911930D@scs.ch> (raw)

Hi,

Here's a small patch which defines rwlock_init() for alphas. It's
defined for all the other platforms.

    Reto

--- include/asm-alpha/spinlock.h.orig   Thu May  3 11:00:08 2001
+++ include/asm-alpha/spinlock.h        Thu May  3 11:01:46 2001
@@ -95,6 +95,7 @@
 } /*__attribute__((aligned(32)))*/ rwlock_t;

 #define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0 }
+#define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0)

 #if DEBUG_RWLOCK
 extern void write_lock(rwlock_t * lock);



                 reply	other threads:[~2001-05-03  9:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3AF126FB.1911930D@scs.ch \
    --to=baettig@scs.ch \
    --cc=linux-kernel@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 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.