kernel-fxtec-pro1x/kernel/power
Rafael J. Wysocki 62109b4317 PM / sleep: Fix test_suspend= command line option
After commit d431cbc53c (PM / sleep: Simplify sleep states sysfs
interface code) the pm_states[] array is not populated initially,
which causes setup_test_suspend() to always fail and the suspend
testing during boot doesn't work any more.

Fix the problem by using pm_labels[] instead of pm_states[] in
setup_test_suspend() and storing a pointer to the label of the
sleep state to test rather than the number representing it,
because the connection between the state numbers and labels is
only established by suspend_set_ops().

Fixes: d431cbc53c (PM / sleep: Simplify sleep states sysfs interface code)
Reported-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-09-03 01:21:03 +02:00
..
autosleep.c
block_io.c
console.c
hibernate.c
Kconfig
main.c Merge branches 'pm-apm' and 'pm-sleep' 2014-07-27 23:56:30 +02:00
Makefile
power.h PM / sleep: Fix test_suspend= command line option 2014-09-03 01:21:03 +02:00
poweroff.c
process.c
qos.c
snapshot.c PM / hibernate: avoid unsafe pages in e820 reserved regions 2014-08-06 23:50:07 +02:00
suspend.c PM / sleep: Fix test_suspend= command line option 2014-09-03 01:21:03 +02:00
suspend_test.c PM / sleep: Fix test_suspend= command line option 2014-09-03 01:21:03 +02:00
swap.c
user.c
wakelock.c