diff options
author | Lukas Wunner <lukas@wunner.de> | 2018-07-20 01:27:46 +0300 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-07-24 01:04:15 +0300 |
commit | 1656716d45d0aae8c0a21a0553b9d27cd98fda61 (patch) | |
tree | 949a72be5647e6bec3daf6fa9b5e1799ce24993e /drivers/pci/hotplug/pciehp.h | |
parent | 32a8cef274feacd00b748a4f13b84d60aa6d82ff (diff) | |
download | linux-1656716d45d0aae8c0a21a0553b9d27cd98fda61.tar.xz |
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.h | 3 |
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; }; /** |