Page MenuHomeFreeBSD

D30144.id88747.diff
No OneTemporary

D30144.id88747.diff

diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -925,6 +925,8 @@
&pci_enable_pcie_hp, 0,
"Enable support for native PCI-express HotPlug.");
+TASKQUEUE_DEFINE_THREAD(pci_hp);
+
static void
pcib_probe_hotplug(struct pcib_softc *sc)
{
@@ -1154,7 +1156,7 @@
*/
if (schedule_task &&
(pcib_hotplug_present(sc) != 0) != (sc->child != NULL))
- taskqueue_enqueue(taskqueue_thread, &sc->pcie_hp_task);
+ taskqueue_enqueue(taskqueue_pci_hp, &sc->pcie_hp_task);
}
static void
@@ -1449,7 +1451,7 @@
error = pcib_release_pcie_irq(sc);
if (error)
return (error);
- taskqueue_drain(taskqueue_thread, &sc->pcie_hp_task);
+ taskqueue_drain(taskqueue_pci_hp, &sc->pcie_hp_task);
callout_drain(&sc->pcie_ab_timer);
callout_drain(&sc->pcie_cc_timer);
callout_drain(&sc->pcie_dll_timer);

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 4:56 PM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14539018
Default Alt Text
D30144.id88747.diff (882 B)

Event Timeline