mirror of https://gitee.com/openkylin/linux.git
0aa2a22169
The generic PM domains framework currently doesn't work with devices whose power.irq_safe flag is set, because runtime PM callbacks for such devices are run with interrupts disabled and the callbacks provided by the generic PM domains framework use domain mutexes and may sleep. However, such devices very well may belong to power domains on some systems, so the generic PM domains framework should take them into account. For this reason, modify the generic PM domains framework so that the domain .power_off() and .power_on() callbacks are never executed for a domain containing devices with power.irq_safe set, although the .stop_device() and .start_device() callbacks are still run for them. Additionally, introduce a flag allowing the creator of a struct generic_pm_domain object to indicate that its .stop_device() and .start_device() callbacks may be run in interrupt context (might_sleep_if() triggers if that flag is not set and one of those callbacks is run in interrupt context). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> |
||
---|---|---|
.. | ||
include/mach | ||
Kconfig | ||
Makefile | ||
Makefile.boot | ||
board-ag5evm.c | ||
board-ap4evb.c | ||
board-g3evm.c | ||
board-g4evm.c | ||
board-mackerel.c | ||
clock-sh73a0.c | ||
clock-sh7367.c | ||
clock-sh7372.c | ||
clock-sh7377.c | ||
clock.c | ||
console.c | ||
cpuidle.c | ||
entry-gic.S | ||
entry-intc.S | ||
headsmp.S | ||
hotplug.c | ||
intc-sh73a0.c | ||
intc-sh7367.c | ||
intc-sh7372.c | ||
intc-sh7377.c | ||
localtimer.c | ||
pfc-sh73a0.c | ||
pfc-sh7367.c | ||
pfc-sh7372.c | ||
pfc-sh7377.c | ||
platsmp.c | ||
pm-sh7372.c | ||
pm_runtime.c | ||
setup-sh73a0.c | ||
setup-sh7367.c | ||
setup-sh7372.c | ||
setup-sh7377.c | ||
sleep-sh7372.S | ||
smp-sh73a0.c | ||
suspend.c | ||
timer.c |