]> git.baikalelectronics.ru Git - kernel.git/commit
PM / sleep: Asynchronous threads for resume_noirq
authorLiu, Chuansheng <chuansheng.liu@intel.com>
Tue, 18 Feb 2014 02:28:45 +0000 (10:28 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Feb 2014 00:30:09 +0000 (01:30 +0100)
commitd5359e541039cad92c05b3892fbc1c4144b86b9e
tree6ed8ae6ed50e2fdc10886f43841fe75cea245682
parent10c47cff9180b06169a9db17fa503d3c6a90a0c1
PM / sleep: Asynchronous threads for resume_noirq

In analogy with commits 5717a93406e4 and e82f3c66e44, using
asynchronous threads can improve the overall resume_noirq time
significantly.

One typical case is:
In resume_noirq phase and for the PCI devices, the function
pci_pm_resume_noirq() will be called, and there is one d3_delay
(10ms) at least.

With the way of asynchronous threads, we just need wait d3_delay
time once in parallel for each calling, which saves much time to
resume quickly.

Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/main.c