android_kernel_xiaomi_sm8350/kernel/power
Rafael J. Wysocki 900af0d973 PM: Change suspend code ordering
Change the ordering of the suspend core code so that the platform
"prepare" callback is executed and the nonboot CPUs are disabled
after calling device drivers' "late suspend" methods.

This change will allow us to rework the PCI PM core so that the power
state of devices is changed in the "late" phase of suspend (and
analogously in the "early" phase of resume), which in turn will allow
us to avoid the race condition where a device using shared interrupts
is put into a low power state with interrupts enabled and then an
interrupt (for another device) comes in and confuses its driver.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
2009-03-30 21:46:54 +02:00
..
console.c PM: Wait for console in resume 2009-02-21 14:17:17 -08:00
disk.c PM: Rework handling of interrupts during suspend-resume 2009-03-30 21:46:54 +02:00
Kconfig PM_TEST_SUSPEND should depend on RTC_CLASS, not RTC_LIB 2008-11-01 12:40:38 -07:00
main.c PM: Change suspend code ordering 2009-03-30 21:46:54 +02:00
Makefile PM: fix build for CONFIG_PM unset 2009-02-21 14:17:17 -08:00
power.h [PATCH] propagate mode through swsusp_close() 2008-10-21 07:49:02 -04:00
poweroff.c cpumask: convert rest of files in kernel/ 2009-01-01 10:12:28 +10:30
process.c container freezer: skip frozen cgroups during power management resume 2008-10-20 08:52:34 -07:00
snapshot.c Hibernate: Replace unnecessary evaluation of pfn_to_page() 2008-12-19 04:40:35 -05:00
swap.c block: fix bad definition of BIO_RW_SYNC 2009-02-18 10:32:00 +01:00
swsusp.c ACPI hibernate: Add a mechanism to save/restore ACPI NVS memory 2008-12-19 04:40:34 -05:00
user.c PM: Fix pm_notifiers during user mode hibernation 2009-02-21 14:17:17 -08:00