aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2006-08-30 17:09:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 00:08:38 -0400
commit1d3a82af45428c5e8deaa119cdeb79611ae46371 (patch)
treee8e5b7a03a979e149541149cab5570352b90656f /kernel
parent1ebfd79eb46a89eacf3cbdf4a463d5d572d3557b (diff)
PM: no suspend_prepare() phase
Remove the new suspend_prepare() phase. It doesn't seem very usable, has never been tested, doesn't address fault cleanup, and would need a sibling resume_complete(); plus there are no real use cases. It could be restored later if those issues get resolved. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c
index 0c3ed6ac938e..6d295c776794 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -57,10 +57,6 @@ static int suspend_prepare(suspend_state_t state)
57 if (!pm_ops || !pm_ops->enter) 57 if (!pm_ops || !pm_ops->enter)
58 return -EPERM; 58 return -EPERM;
59 59
60 error = device_prepare_suspend(PMSG_SUSPEND);
61 if (error)
62 return error;
63
64 pm_prepare_console(); 60 pm_prepare_console();
65 61
66 disable_nonboot_cpus(); 62 disable_nonboot_cpus();