]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Use power.sybsys_data to reduce overhead
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Aug 2011 13:34:12 +0000 (15:34 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Aug 2011 13:34:12 +0000 (15:34 +0200)
commit01efe4fa034fa7dfd27563a482085aeb1c91a48d
tree8f55aa3137973ce2a3ef0ed49c44304e148d50fe
parent68ff5b6e4a841b88021a93e7a9298886bab9903e
PM / Domains: Use power.sybsys_data to reduce overhead

Currently pm_genpd_runtime_resume() has to walk the list of devices
from the device's PM domain to find the corresponding device list
object containing the need_restore field to check if the driver's
.runtime_resume() callback should be executed for the device.
This is suboptimal and can be simplified by using power.sybsys_data
to store device information used by the generic PM domains code.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/pm-sh7372.c
drivers/base/power/domain.c
include/linux/pm.h
include/linux/pm_domain.h
include/linux/pm_runtime.h