diff options
author | Lin Ming <ming.m.lin@intel.com> | 2013-03-23 11:42:27 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-03-22 22:22:15 -0600 |
commit | c8158819d506a8aedeca53c52dfb709a0aabe011 (patch) | |
tree | acabca463a1898931cd325c415a51a819eabee00 /drivers | |
parent | 6c9546675864f51506af69eca388e5d922942c56 (diff) | |
download | linux-3.10-c8158819d506a8aedeca53c52dfb709a0aabe011.tar.gz linux-3.10-c8158819d506a8aedeca53c52dfb709a0aabe011.tar.bz2 linux-3.10-c8158819d506a8aedeca53c52dfb709a0aabe011.zip |
block: implement runtime pm strategy
When a request is added:
If device is suspended or is suspending and the request is not a
PM request, resume the device.
When the last request finishes:
Call pm_runtime_mark_last_busy().
When pick a request:
If device is resuming/suspending, then only PM request is allowed
to go.
The idea and API is designed by Alan Stern and described here:
http://marc.info/?l=linux-scsi&m=133727953625963&w=2
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions