]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Automatically update overoptimistic latency information
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 27 Nov 2011 12:12:25 +0000 (13:12 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 27 Nov 2011 12:12:25 +0000 (13:12 +0100)
commit89b1f0af2394edaa1675092a0d9f1cc30cba4d72
tree33942aa7b97c7bc7db9f55f1ff96940693856d43
parent06104bc242d99a57915b4caf3326d6231890a398
PM / Domains: Automatically update overoptimistic latency information

Measure the time of execution of the .stop(), .start(), .save_state()
and .restore_state() PM domain device callbacks and if the result
is greater than the corresponding latency value stored in the
device's struct generic_pm_domain_data object, replace the inaccurate
value with the measured time.

Do analogously for the PM domains' .power_off() and .power_off()
callbacks.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c