[PORT FROM R2] PM: add statistics debugfs file for suspend to ram.
authorShuoX Liu <shuox.liu@intel.com>
Thu, 28 Jul 2011 02:54:22 +0000 (10:54 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 27 Jan 2012 14:45:36 +0000 (06:45 -0800)
commit90c711d128cbd36445d94d535a347add1f96f3d4
treefbe3db509f1a2f88b6e580f27c8667d43020715b
parent2d93c57b5046e26789155c35f2713293914946be
[PORT FROM R2] PM: add statistics debugfs file for suspend to ram.

BZ: 6275

Record S3 failure time about each reason and the latest two failed
devices' name in S3 progress.
We can check it through 'suspend_stats' entry in debugfs.

Change-Id: I080c7ffe3a5539d6e0882b927438db7456d4973d
Orig-Change-Id: Ieed7fd74e27d3b482675a20cb0bb26b9054a1624
Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
Signed-off-by: Loic Martin <loicx.martin@intel.com>
Reviewed-on: http://android.intel.com:8080/32873
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Documentation/power/basic-pm-debugging.txt
drivers/base/power/main.c
include/linux/suspend.h
kernel/power/main.c
kernel/power/suspend.c