diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-25 06:44:44 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-25 06:44:44 -0400 |
commit | 76a9f26c9e40e9c0ed5dc8f0cedd74e733f0088d (patch) | |
tree | 8e2db4ba9263e92d264ef469c7dac28078f63874 /drivers/base/power/resume.c | |
parent | 9bf2aa129a107a0e9e2a5318d35aca731ae7e666 (diff) | |
parent | dfd8317d3340f03bc06eba6b58f0ec0861da4a13 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'drivers/base/power/resume.c')
-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 317edbf0feca..520679ce53a8 100644 --- a/drivers/base/power/resume.c +++ b/drivers/base/power/resume.c | |||
@@ -9,6 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/device.h> | 11 | #include <linux/device.h> |
12 | #include <linux/resume-trace.h> | ||
12 | #include "../base.h" | 13 | #include "../base.h" |
13 | #include "power.h" | 14 | #include "power.h" |
14 | 15 | ||
@@ -23,6 +24,8 @@ int resume_device(struct device * dev) | |||
23 | { | 24 | { |
24 | int error = 0; | 25 | int error = 0; |
25 | 26 | ||
27 | TRACE_DEVICE(dev); | ||
28 | TRACE_RESUME(0); | ||
26 | down(&dev->sem); | 29 | down(&dev->sem); |
27 | if (dev->power.pm_parent | 30 | if (dev->power.pm_parent |
28 | && dev->power.pm_parent->power.power_state.event) { | 31 | && dev->power.pm_parent->power.power_state.event) { |
@@ -36,6 +39,7 @@ int resume_device(struct device * dev) | |||
36 | error = dev->bus->resume(dev); | 39 | error = dev->bus->resume(dev); |
37 | } | 40 | } |
38 | up(&dev->sem); | 41 | up(&dev->sem); |
42 | TRACE_RESUME(error); | ||
39 | return error; | 43 | return error; |
40 | } | 44 | } |
41 | 45 | ||