diff options
Diffstat (limited to 'kernel/power/main.c')
| -rw-r--r-- | kernel/power/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 19122cf6d827..613f16941b85 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | #include <linux/freezer.h> | 22 | #include <linux/freezer.h> |
| 23 | #include <linux/vmstat.h> | 23 | #include <linux/vmstat.h> |
| 24 | #include <linux/syscalls.h> | 24 | #include <linux/syscalls.h> |
| 25 | #include <linux/ftrace.h> | ||
| 26 | 25 | ||
| 27 | #include "power.h" | 26 | #include "power.h" |
| 28 | 27 | ||
| @@ -174,7 +173,7 @@ static void suspend_test_finish(const char *label) | |||
| 174 | * has some performance issues. The stack dump of a WARN_ON | 173 | * has some performance issues. The stack dump of a WARN_ON |
| 175 | * is more likely to get the right attention than a printk... | 174 | * is more likely to get the right attention than a printk... |
| 176 | */ | 175 | */ |
| 177 | WARN_ON(msec > (TEST_SUSPEND_SECONDS * 1000)); | 176 | WARN(msec > (TEST_SUSPEND_SECONDS * 1000), "Component: %s\n", label); |
| 178 | } | 177 | } |
| 179 | 178 | ||
| 180 | #else | 179 | #else |
| @@ -317,7 +316,7 @@ static int suspend_enter(suspend_state_t state) | |||
| 317 | */ | 316 | */ |
| 318 | int suspend_devices_and_enter(suspend_state_t state) | 317 | int suspend_devices_and_enter(suspend_state_t state) |
| 319 | { | 318 | { |
| 320 | int error, ftrace_save; | 319 | int error; |
| 321 | 320 | ||
| 322 | if (!suspend_ops) | 321 | if (!suspend_ops) |
| 323 | return -ENOSYS; | 322 | return -ENOSYS; |
| @@ -328,7 +327,6 @@ int suspend_devices_and_enter(suspend_state_t state) | |||
| 328 | goto Close; | 327 | goto Close; |
| 329 | } | 328 | } |
| 330 | suspend_console(); | 329 | suspend_console(); |
| 331 | ftrace_save = __ftrace_enabled_save(); | ||
| 332 | suspend_test_start(); | 330 | suspend_test_start(); |
| 333 | error = device_suspend(PMSG_SUSPEND); | 331 | error = device_suspend(PMSG_SUSPEND); |
| 334 | if (error) { | 332 | if (error) { |
| @@ -360,7 +358,6 @@ int suspend_devices_and_enter(suspend_state_t state) | |||
| 360 | suspend_test_start(); | 358 | suspend_test_start(); |
| 361 | device_resume(PMSG_RESUME); | 359 | device_resume(PMSG_RESUME); |
| 362 | suspend_test_finish("resume devices"); | 360 | suspend_test_finish("resume devices"); |
| 363 | __ftrace_enabled_restore(ftrace_save); | ||
| 364 | resume_console(); | 361 | resume_console(); |
| 365 | Close: | 362 | Close: |
| 366 | if (suspend_ops->end) | 363 | if (suspend_ops->end) |
