summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0105-pci-pme-wakeups.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/boot_time_opt/0105-pci-pme-wakeups.patch')
-rw-r--r--patches/boot_time_opt/0105-pci-pme-wakeups.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0105-pci-pme-wakeups.patch b/patches/boot_time_opt/0105-pci-pme-wakeups.patch
new file mode 100644
index 0000000..5bb76ad
--- /dev/null
+++ b/patches/boot_time_opt/0105-pci-pme-wakeups.patch
@@ -0,0 +1,41 @@
1From 1dc7a20946596b24f669fe038a1ae31a28cf59a5 Mon Sep 17 00:00:00 2001
2From: Arjan van de Ven <arjan@linux.intel.com>
3Date: Mon, 14 Mar 2016 11:10:58 -0600
4Subject: [PATCH 105/126] pci pme wakeups
5
6Reduce wakeups for PME checks, which are a workaround for miswired
7boards (sadly, too many of them) in laptops.
8---
9 drivers/misc/vmw_balloon.c | 2 +-
10 drivers/pci/pci.c | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
14index 1e688bfec567..e0a4f3eb0d8e 100644
15--- a/drivers/misc/vmw_balloon.c
16+++ b/drivers/misc/vmw_balloon.c
17@@ -1142,7 +1142,7 @@ static void vmballoon_work(struct work_struct *work)
18 * stopped while the system transitions to/from sleep/hibernation.
19 */
20 queue_delayed_work(system_freezable_wq,
21- dwork, round_jiffies_relative(HZ));
22+ dwork, round_jiffies_relative(10*HZ));
23 }
24
25 /*
26diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
27index 6078dfc11b11..44f61288d508 100644
28--- a/drivers/pci/pci.c
29+++ b/drivers/pci/pci.c
30@@ -58,7 +58,7 @@ struct pci_pme_device {
31 struct pci_dev *dev;
32 };
33
34-#define PME_TIMEOUT 1000 /* How long between PME checks */
35+#define PME_TIMEOUT 4000 /* How long between PME checks */
36
37 static void pci_dev_d3_sleep(struct pci_dev *dev)
38 {
39--
402.15.0
41