From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Cc: tglx@linutronix.de
Subject: [PATCH] PCI: Lock initializer cleanup - batch 4
Date: Mon, 17 Jan 2005 14:01:53 -0800 [thread overview]
Message-ID: <11059993132995@kroah.com> (raw)
In-Reply-To: <11059993123253@kroah.com>
ChangeSet 1.2329.2.7, 2005/01/14 15:58:57-08:00, tglx@linutronix.de
[PATCH] PCI: Lock initializer cleanup - batch 4
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/pci/access.c | 2 +-
drivers/pci/msi.c | 2 +-
drivers/pci/search.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff -Nru a/drivers/pci/access.c b/drivers/pci/access.c
--- a/drivers/pci/access.c 2005-01-17 13:55:40 -08:00
+++ b/drivers/pci/access.c 2005-01-17 13:55:40 -08:00
@@ -7,7 +7,7 @@
* configuration space.
*/
-static spinlock_t pci_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(pci_lock);
/*
* Wrappers for all PCI configuration access functions. They just check
diff -Nru a/drivers/pci/msi.c b/drivers/pci/msi.c
--- a/drivers/pci/msi.c 2005-01-17 13:55:40 -08:00
+++ b/drivers/pci/msi.c 2005-01-17 13:55:40 -08:00
@@ -22,7 +22,7 @@
#include "msi.h"
-static spinlock_t msi_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(msi_lock);
static struct msi_desc* msi_desc[NR_IRQS] = { [0 ... NR_IRQS-1] = NULL };
static kmem_cache_t* msi_cachep;
diff -Nru a/drivers/pci/search.c b/drivers/pci/search.c
--- a/drivers/pci/search.c 2005-01-17 13:55:40 -08:00
+++ b/drivers/pci/search.c 2005-01-17 13:55:40 -08:00
@@ -13,7 +13,7 @@
#include <linux/interrupt.h>
#include "pci.h"
-spinlock_t pci_bus_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(pci_bus_lock);
static struct pci_bus * __devinit
pci_do_find_bus(struct pci_bus* bus, unsigned char busnr)
next prev parent reply other threads:[~2005-01-17 22:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 22:01 [BK PATCH] PCI fixes and PCI Express drivers for 2.6.11-rc1 Greg KH
2005-01-17 22:01 ` [PATCH] PCI: add PCI Express Port Bus Driver subsystem Greg KH
2005-01-17 22:01 ` [PATCH] PCI: use modern format for PCI addresses Greg KH
2005-01-17 22:01 ` [PATCH] PCI: pci_ids.h correction for Intel ICH7 - 2.6.10-bk13 Greg KH
2005-01-17 22:01 ` [PATCH] PCI: Clean up printks in msi.c Greg KH
2005-01-17 22:01 ` [PATCH] PCI: rom.c cleanups Greg KH
2005-01-17 22:01 ` [PATCH] PCI: Downgrade printk that complains about unsupported PCI PM caps Greg KH
2005-01-17 22:01 ` Greg KH [this message]
2005-01-17 22:01 ` [PATCH] PCI: fix release_pcibus_dev() crash Greg KH
2005-01-17 22:01 ` PCI: move pcie build into the drivers/pci/ subdirectory Greg KH
2005-01-17 23:49 ` [PATCH] PCI: add PCI Express Port Bus Driver subsystem Greg KH
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=11059993132995@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).