summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp.h
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2018-07-19 17:27:46 -0500
committerBjorn Helgaas <helgaas@kernel.org>2018-07-23 17:04:15 -0500
commit1656716d45d0aae8c0a21a0553b9d27cd98fda61 (patch)
tree949a72be5647e6bec3daf6fa9b5e1799ce24993e /drivers/pci/hotplug/pciehp.h
parent32a8cef274feacd00b748a4f13b84d60aa6d82ff (diff)
downloadlinux-1656716d45d0aae8c0a21a0553b9d27cd98fda61.tar.bz2
PCI: pciehp: Drop enable/disable lock
Previously slot enablement and disablement could happen concurrently. But now it's under the exclusive control of the IRQ thread, rendering the locking obsolete. Drop it. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r--drivers/pci/hotplug/pciehp.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index ed42dde5f9ac..5417180c3aff 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -67,8 +67,6 @@ do { \
* an Attention Button press
* @lock: protects reads and writes of @state;
* protects scheduling, execution and cancellation of @work
- * @hotplug_lock: serializes calls to pciehp_enable_slot() and
- * pciehp_disable_slot()
*/
struct slot {
u8 state;
@@ -76,7 +74,6 @@ struct slot {
struct hotplug_slot *hotplug_slot;
struct delayed_work work;
struct mutex lock;
- struct mutex hotplug_lock;
};
/**