aboutsummaryrefslogtreecommitdiffstats
path: root/patches.kzm9g/0004-serial-Fix-wakeup-init-logic-to-speed-up-startup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches.kzm9g/0004-serial-Fix-wakeup-init-logic-to-speed-up-startup.patch')
-rw-r--r--patches.kzm9g/0004-serial-Fix-wakeup-init-logic-to-speed-up-startup.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/patches.kzm9g/0004-serial-Fix-wakeup-init-logic-to-speed-up-startup.patch b/patches.kzm9g/0004-serial-Fix-wakeup-init-logic-to-speed-up-startup.patch
deleted file mode 100644
index 6a58103c6edb37..00000000000000
--- a/patches.kzm9g/0004-serial-Fix-wakeup-init-logic-to-speed-up-startup.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From da29566854e9ffb6770255fbd915184073d2d0b1 Mon Sep 17 00:00:00 2001
-From: Simon Glass <sjg@chromium.org>
-Date: Thu, 19 Jan 2012 11:28:56 -0800
-Subject: serial: Fix wakeup init logic to speed up startup
-
-The synchronize_rcu() call resulting from making every serial driver
-wake-up capable (commit b3b708fa) slows boot down on my Tegra2x system
-(with CONFIG_PREEMPT disabled).
-
-But this is avoidable since it is the device_set_wakeup_enable() and then
-subsequence disable which causes the delay. We might as well just make
-the device wakeup capable but not actually enable it for wakeup until
-needed.
-
-Effectively the current code does this:
-
- device_set_wakeup_capable(dev, 1);
- device_set_wakeup_enable(dev, 1);
- device_set_wakeup_enable(dev, 0);
-
-We can just drop the last two lines.
-
-Before this change my boot log says:
-[ 0.227062] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
-[ 0.702928] serial8250.0: ttyS0 at MMIO 0x70006040 (irq = 69) is a Tegra
-
-after:
-[ 0.227264] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
-[ 0.227983] serial8250.0: ttyS0 at MMIO 0x70006040 (irq = 69) is a Tegra
-
-for saving of 450ms.
-
-Suggested-by: Rafael J. Wysocki <rjw@sisk.pl>
-Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
-Signed-off-by: Simon Glass <sjg@chromium.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-(cherry picked from commit 773598357c0baf03081cf87f2b444f97744faf1e)
-
-Signed-off-by: Simon Horman <horms@verge.net.au>
----
- drivers/tty/serial/serial_core.c | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
---- a/drivers/tty/serial/serial_core.c
-+++ b/drivers/tty/serial/serial_core.c
-@@ -2391,11 +2391,11 @@ int uart_add_one_port(struct uart_driver
- */
- tty_dev = tty_register_device(drv->tty_driver, uport->line, uport->dev);
- if (likely(!IS_ERR(tty_dev))) {
-- device_init_wakeup(tty_dev, 1);
-- device_set_wakeup_enable(tty_dev, 0);
-- } else
-+ device_set_wakeup_capable(tty_dev, 1);
-+ } else {
- printk(KERN_ERR "Cannot register tty device on line %d\n",
- uport->line);
-+ }
-
- /*
- * Ensure UPF_DEAD is not set.