summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-30 23:07:16 (GMT)
committerScott Wood <scottwood@freescale.com>2013-04-04 22:09:11 (GMT)
commit831ae4682660723aaedeb289a5e744722ecb347e (patch)
tree43ae9a7087b5c498db4528b80fce0b9f6685ed10 /drivers/pci
parent6e6edeb1d567f56b3d5ecdbeb41b1fb045bfe668 (diff)
downloadlinux-fsl-qoriq-831ae4682660723aaedeb289a5e744722ecb347e.tar.xz
pci: Use __wake_up_all_locked pci_unblock_user_cfg_access()
The waitqueue is protected by the pci_lock, so we can just avoid to lock the waitqueue lock itself. That prevents the might_sleep()/scheduling while atomic problem on RT Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable-rt@vger.kernel.org
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/access.c b/drivers/pci/access.c
index 32046c5..0941838 100644
--- a/drivers/pci/access.c
+++ b/drivers/pci/access.c
@@ -465,7 +465,7 @@ void pci_cfg_access_unlock(struct pci_dev *dev)
WARN_ON(!dev->block_cfg_access);
dev->block_cfg_access = 0;
- wake_up_all(&pci_cfg_wait);
+ wake_up_all_locked(&pci_cfg_wait);
raw_spin_unlock_irqrestore(&pci_lock, flags);
}
EXPORT_SYMBOL_GPL(pci_cfg_access_unlock);