PM / sleep: add TEST_PLATFORM support for freeze state
authorZhang Rui <rui.zhang@intel.com>
Wed, 27 Mar 2013 03:36:10 +0000 (03:36 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Apr 2013 12:18:25 +0000 (14:18 +0200)
commit08605acc7e3b7974e309d73ddf39ee9464d95e51
treee187c794901d5a477a31bb632d74c63774cac88a
parentd08d528dc1848fb369a0b27cdb0749d8f6f38063
PM / sleep: add TEST_PLATFORM support for freeze state

Invoke freeze_enter() after suspend_test(TEST_PLATFORM) being invoked.

So when setting /sys/power/pm_test to "platform", it can be used to
check if freeze state is working well after all devices are suspended
and before processors are blocked,

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/suspend.c