]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Fix computation of maximum domain off time
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 7 May 2012 20:00:59 +0000 (22:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 11 May 2012 19:11:44 +0000 (21:11 +0200)
commitb723b0eb91e08a0ee9a401c0b22c0d52966d9daa
tree5730adb87db4c0d8cabec414495a401bcb421cec
parent4fcac10d28e7a046120b51a106b19082d2e57401
PM / Domains: Fix computation of maximum domain off time

The default domain power off governor function for generic PM
domains, default_power_down_ok(), may violate subdomain maximum
off time limit by allowing the master domain to be off for too
long.  Namely, it only finds the minium of all device maximum
off times over the domain's devices and uses that to compute the
domain's maximum off time, but it should do the same for the
subdomains.

Fix this problem by modifying default_power_down_ok() to compute
the given domain's maximum off time as the difference between the
minimum off time over all devices and subdomains in the domain and
its power on latency.

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