PCI: pciehp: Convert to threaded polling
authorLukas Wunner <lukas@wunner.de>
Thu, 19 Jul 2018 22:27:39 +0000 (17:27 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Mon, 23 Jul 2018 22:04:12 +0000 (17:04 -0500)
commitec07a4473072ff0607e3126ce26c31dbf81f9a15
tree40c25791e2d03df387315cfc9ca6fbfa38244847
parent7b4ce26bcf697e3a4aa9ba2a5b456562e0fb7af4
PCI: pciehp: Convert to threaded polling

We've just converted pciehp to threaded IRQ handling, but still cannot
sleep in pciehp_ist() because the function is also called in poll mode,
which runs in softirq context (from a timer).

Convert poll mode to a kthread so that pciehp_ist() always runs in task
context.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_hpc.c