diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-24 21:32:18 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-24 21:47:59 (GMT) |
commit | d02f40e81e003be6ddba5c176f2e40ea290c3729 (patch) | |
tree | 9a8147cc77bc6fead512abf6dfce25d4c38fa6b2 | |
parent | eb71c87a492b7090ff9e8ac46912c480a1687e38 (diff) | |
download | linux-d02f40e81e003be6ddba5c176f2e40ea290c3729.tar.xz |
Enable minimal per-device resume tracing
This is the minimal resume trace code to find which device resume (if
any) results in problems. Usually, you'd use the information this
generates as a starting point to adding more fine-grained trace event
points.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/base/power/resume.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/power/resume.c b/drivers/base/power/resume.c index 317edbf..520679c 100644 --- a/drivers/base/power/resume.c +++ b/drivers/base/power/resume.c @@ -9,6 +9,7 @@ */ #include <linux/device.h> +#include <linux/resume-trace.h> #include "../base.h" #include "power.h" @@ -23,6 +24,8 @@ int resume_device(struct device * dev) { int error = 0; + TRACE_DEVICE(dev); + TRACE_RESUME(0); down(&dev->sem); if (dev->power.pm_parent && dev->power.pm_parent->power.power_state.event) { @@ -36,6 +39,7 @@ int resume_device(struct device * dev) error = dev->bus->resume(dev); } up(&dev->sem); + TRACE_RESUME(error); return error; } |