Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109171
b: refs/heads/master
c: f42ac38
h: refs/heads/master
i:
  109169: 8bdcdea
  109167: c5a4156
v: v3
  • Loading branch information
Steven Rostedt authored and Linus Torvalds committed Aug 27, 2008
1 parent 4b1f7cc commit 67aa788
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8560c650f340565b720fd57d1f9c99ab216d99d0
refs/heads/master: f42ac38c59e0a03d6da0c24a63fb211393f484b0
5 changes: 4 additions & 1 deletion trunk/kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/freezer.h>
#include <linux/vmstat.h>
#include <linux/syscalls.h>
#include <linux/ftrace.h>

#include "power.h"

Expand Down Expand Up @@ -310,7 +311,7 @@ static int suspend_enter(suspend_state_t state)
*/
int suspend_devices_and_enter(suspend_state_t state)
{
int error;
int error, ftrace_save;

if (!suspend_ops)
return -ENOSYS;
Expand All @@ -321,6 +322,7 @@ int suspend_devices_and_enter(suspend_state_t state)
goto Close;
}
suspend_console();
ftrace_save = __ftrace_enabled_save();
suspend_test_start();
error = device_suspend(PMSG_SUSPEND);
if (error) {
Expand Down Expand Up @@ -352,6 +354,7 @@ int suspend_devices_and_enter(suspend_state_t state)
suspend_test_start();
device_resume(PMSG_RESUME);
suspend_test_finish("resume devices");
__ftrace_enabled_restore(ftrace_save);
resume_console();
Close:
if (suspend_ops->end)
Expand Down

0 comments on commit 67aa788

Please sign in to comment.