|
@@ -1784,8 +1784,8 @@ static void pci_pme_list_scan(struct work_struct *work)
|
|
|
}
|
|
|
}
|
|
|
if (!list_empty(&pci_pme_list))
|
|
|
- schedule_delayed_work(&pci_pme_work,
|
|
|
- msecs_to_jiffies(PME_TIMEOUT));
|
|
|
+ queue_delayed_work(system_freezable_wq, &pci_pme_work,
|
|
|
+ msecs_to_jiffies(PME_TIMEOUT));
|
|
|
mutex_unlock(&pci_pme_list_mutex);
|
|
|
}
|
|
|
|
|
@@ -1850,8 +1850,9 @@ void pci_pme_active(struct pci_dev *dev, bool enable)
|
|
|
mutex_lock(&pci_pme_list_mutex);
|
|
|
list_add(&pme_dev->list, &pci_pme_list);
|
|
|
if (list_is_singular(&pci_pme_list))
|
|
|
- schedule_delayed_work(&pci_pme_work,
|
|
|
- msecs_to_jiffies(PME_TIMEOUT));
|
|
|
+ queue_delayed_work(system_freezable_wq,
|
|
|
+ &pci_pme_work,
|
|
|
+ msecs_to_jiffies(PME_TIMEOUT));
|
|
|
mutex_unlock(&pci_pme_list_mutex);
|
|
|
} else {
|
|
|
mutex_lock(&pci_pme_list_mutex);
|