aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/hotplug/pciehp.h
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2018-07-19 17:27:42 -0500
committerBjorn Helgaas <helgaas@kernel.org>2018-07-23 17:04:13 -0500
commit55a6b7a6576d6cba77bb2ce2bfb2126df83df58a (patch)
tree7c496fba003e8f656ee79cd5108bfd982af90c1c /drivers/pci/hotplug/pciehp.h
parentPCI: pciehp: Handle events synchronously (diff)
downloadwireguard-linux-55a6b7a6576d6cba77bb2ce2bfb2126df83df58a.tar.xz
wireguard-linux-55a6b7a6576d6cba77bb2ce2bfb2126df83df58a.zip
PCI: pciehp: Drop slot workqueue
Previously the slot workqueue was used to handle events and enable or disable the slot. That's no longer the case as those tasks are done synchronously in the IRQ thread. The slot workqueue is thus merely used to handle a button press after the 5 second delay and only one such work item may be in flight at any given time. A separate workqueue isn't necessary for this simple task, so use the system workqueue instead. 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.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index 82ff77cc92f5..0d005c5fabfa 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -69,7 +69,6 @@ do { \
* protects scheduling, execution and cancellation of @work
* @hotplug_lock: serializes calls to pciehp_enable_slot() and
* pciehp_disable_slot()
- * @wq: work queue on which @work is scheduled
*/
struct slot {
u8 state;
@@ -78,7 +77,6 @@ struct slot {
struct delayed_work work;
struct mutex lock;
struct mutex hotplug_lock;
- struct workqueue_struct *wq;
};
/**