]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sh: pci: Use a generic raw spinlock for PCI config access locking.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 20 Sep 2010 09:56:13 +0000 (18:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 20 Sep 2010 09:56:13 +0000 (18:56 +0900)
commit39a90865f07f05343c450e91a56578bb8f69c5e8
tree1d7b5d8f092af89c65ab5d4fc81cca62765e7917
parentc524ebf5a6b78d25219d64a05b3876cde719b5ff
sh: pci: Use a generic raw spinlock for PCI config access locking.

This copies the pci_config_lock idea from x86 over, allowing us to kill
off a couple of existing private locks. At the same time, these need to
be converted to raw spinlocks for -rt kernels, so we make that change at
the same time. This should make it easier for future parts to get the
locking right instead of inevitable ending up with lock type mismatches.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/ops-sh4.c
arch/sh/drivers/pci/ops-sh7786.c
arch/sh/drivers/pci/pci.c
arch/sh/include/asm/pci.h