From c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 Mon Sep 17 00:00:00 2001 From: Martin Borg Date: Fri, 23 Mar 2018 14:01:03 +0100 Subject: 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 Signed-off-by: Adrian Dudau --- patches/boot_time_opt/0105-pci-pme-wakeups.patch | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 patches/boot_time_opt/0105-pci-pme-wakeups.patch (limited to 'patches/boot_time_opt/0105-pci-pme-wakeups.patch') 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 @@ +From 1dc7a20946596b24f669fe038a1ae31a28cf59a5 Mon Sep 17 00:00:00 2001 +From: Arjan van de Ven +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 + -- cgit v1.2.3-54-g00ecf