]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM: Do not use the syscore flag for runtime PM
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 13 Aug 2012 12:00:25 +0000 (14:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:38:48 +0000 (19:38 +0200)
commita71bdd3409c67b56b54118d2c7340c8c2239fe7f
tree4ccd2393cc0d15e532de0cd86105aac9522d1b72
parentcf780d0eec9034a3e015826cbab8ce9ac98789cc
PM: Do not use the syscore flag for runtime PM

The syscore device PM flag used to mark the devices (belonging to
PM domains) that should never be turned off, except for the system
core (syscore) suspend/hibernation and resume stages, need not be
accessed by the runtime PM core functions, because all of the devices
it is set for need to be marked as "irq safe" anyway and are
protected from being turned off by runtime PM by ensuring that their
usage counters are always set.

For this reason, make the syscore flag system-wide PM-specific
and simplify the code used for manipulating it, because it need not
acquire the device's power.lock any more.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/common.c
drivers/base/power/domain.c
drivers/base/power/runtime.c
include/linux/device.h
include/linux/pm.h