android_kernel_xiaomi_sm8350/kernel/power
Len Brown 9f9adecd2d PM: ACPI and APM must not be enabled at the same time
ACPI and APM used "pm_active" to guarantee that
they would not be simultaneously active.

But pm_active was recently moved under CONFIG_PM_LEGACY,
so that without CONFIG_PM_LEGACY, pm_active became a NOP --
allowing ACPI and APM to both be simultaneously enabled.
This caused unpredictable results, including boot hangs.

Further, the code under CONFIG_PM_LEGACY is scheduled
for removal.

So replace pm_active with pm_flags.
pm_flags depends only on CONFIG_PM,
which is present for both CONFIG_APM and CONFIG_ACPI.

http://bugzilla.kernel.org/show_bug.cgi?id=9194

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2008-01-11 12:26:47 -05:00
..
console.c
disk.c hibernate: fix lockdep report 2007-11-14 18:45:43 -08:00
Kconfig serial: turn serial console suspend a boot rather than compile time option 2007-10-18 14:37:19 -07:00
main.c PM: ACPI and APM must not be enabled at the same time 2008-01-11 12:26:47 -05:00
Makefile Introduce CONFIG_SUSPEND for suspend-to-Ram and standby 2007-07-29 16:45:38 -07:00
pm.c PM: ACPI and APM must not be enabled at the same time 2008-01-11 12:26:47 -05:00
power.h Hibernation: Check if ACPI is enabled during restore in the right place 2007-10-18 14:37:20 -07:00
poweroff.c
process.c freezer: measure freezing time 2007-10-18 14:37:19 -07:00
snapshot.c trivial copy_data_pages() tidy up 2007-10-20 02:26:04 +02:00
swap.c
swsusp.c Hibernation: Check if ACPI is enabled during restore in the right place 2007-10-18 14:37:20 -07:00
user.c freezer: do not sync filesystems from freeze_processes 2007-10-18 14:37:18 -07:00