forked from clearlinux-pkgs/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0105-pci-pme-wakeups.patch
41 lines (35 loc) · 1.27 KB
/
0105-pci-pme-wakeups.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 1dc7a20946596b24f669fe038a1ae31a28cf59a5 Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <[email protected]>
Date: Mon, 14 Mar 2016 11:10:58 -0600
Subject: [PATCH 105/126] pci pme wakeups
Reduce wakeups for PME checks, which are a workaround for miswired
boards (sadly, too many of them) in laptops.
---
drivers/misc/vmw_balloon.c | 2 +-
drivers/pci/pci.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index 1e688bfec567..e0a4f3eb0d8e 100644
--- a/drivers/misc/vmw_balloon.c
+++ b/drivers/misc/vmw_balloon.c
@@ -1142,7 +1142,7 @@ static void vmballoon_work(struct work_struct *work)
* stopped while the system transitions to/from sleep/hibernation.
*/
queue_delayed_work(system_freezable_wq,
- dwork, round_jiffies_relative(HZ));
+ dwork, round_jiffies_relative(10*HZ));
}
/*
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 6078dfc11b11..44f61288d508 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -58,7 +58,7 @@ struct pci_pme_device {
struct pci_dev *dev;
};
-#define PME_TIMEOUT 1000 /* How long between PME checks */
+#define PME_TIMEOUT 4000 /* How long between PME checks */
static void pci_dev_d3_sleep(struct pci_dev *dev)
{
--
2.15.0