]> git.karo-electronics.de Git - mv-sheeva.git/commit
PM: Add sysfs attr for rechecking dev hash from PM trace
authorJames Hogan <james@albanarts.com>
Mon, 11 Oct 2010 22:00:25 +0000 (00:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Oct 2010 23:57:50 +0000 (01:57 +0200)
commitd33ac60beaf2c7dee5cd90aba7c1eb385dd70937
tree7393c5f323433f39d2c64e7d9990aa7565397214
parent2ac21c6bc4249ee6d922f18dbec7266377592c32
PM: Add sysfs attr for rechecking dev hash from PM trace

If the device which fails to resume is part of a loadable kernel module
it won't be checked at startup against the magic number stored in the
RTC.

Add a read-only sysfs attribute /sys/power/pm_trace_dev_match which
contains a list of newline separated devices (usually just the one)
which currently match the last magic number. This allows the device
which is failing to resume to be found after the modules are loaded
again.

Signed-off-by: James Hogan <james@albanarts.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/ABI/testing/sysfs-power
Documentation/power/s2ram.txt
drivers/base/power/trace.c
include/linux/resume-trace.h
kernel/power/main.c