diff options
author | Martin Borg <martin.borg@enea.com> | 2018-03-23 14:01:03 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2018-03-26 09:57:31 +0200 |
commit | c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 (patch) | |
tree | e46d5f9bceca1947817b7739d366aa44faea9be1 /patches/boot_time_opt/0105-pci-pme-wakeups.patch | |
parent | dfc8946f58bbf4aa3a345c4fb5d5895502936edd (diff) | |
download | enea-kernel-cache-c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7.tar.gz |
boot_time_opt: update host boot time optimization patches for 4.14
The new patches are based on:
https://github.com/clearlinux-pkgs/linux-lts
commit 5595fe425a52af6734235a1a953b6b03210060ec
Signed-off-by: Martin Borg <martin.borg@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0105-pci-pme-wakeups.patch')
-rw-r--r-- | patches/boot_time_opt/0105-pci-pme-wakeups.patch | 41 |
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 @@ | |||
1 | From 1dc7a20946596b24f669fe038a1ae31a28cf59a5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Mon, 14 Mar 2016 11:10:58 -0600 | ||
4 | Subject: [PATCH 105/126] pci pme wakeups | ||
5 | |||
6 | Reduce wakeups for PME checks, which are a workaround for miswired | ||
7 | boards (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 | |||
13 | diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c | ||
14 | index 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 | /* | ||
26 | diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c | ||
27 | index 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 | -- | ||
40 | 2.15.0 | ||
41 | |||