diff options
author | Pavel Machek <pavel@ucw.cz> | 2007-03-22 04:11:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-22 22:39:06 -0400 |
commit | 058560fbd70190ea6b50b5df4d814bc30911d06b (patch) | |
tree | 66aa04a78e34e91ab989a81a8bfa901cb6c47181 | |
parent | 165b239270be610a1e3999cb0d2e4e2c1f2a8fd4 (diff) |
[PATCH] fix extra BIOS invocation during resume
It causes extra moon icons blinking on x60, and breaks at least two other
systems.
During resume, we do not know that "reboot"/"shutdown" method was used, so
we assume "plaform" and call BIOS, anyway...
This is 2.6.21 material, and should fix 2 or 3 regressions from 2.6.20.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/power/disk.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index 873cdf8ea5a4..dee0ff40befd 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -241,18 +241,11 @@ static int software_resume(void) | |||
241 | goto Done; | 241 | goto Done; |
242 | } | 242 | } |
243 | 243 | ||
244 | error = platform_prepare(); | ||
245 | if (error) { | ||
246 | swsusp_free(); | ||
247 | goto Thaw; | ||
248 | } | ||
249 | |||
250 | pr_debug("PM: Reading swsusp image.\n"); | 244 | pr_debug("PM: Reading swsusp image.\n"); |
251 | 245 | ||
252 | error = swsusp_read(); | 246 | error = swsusp_read(); |
253 | if (error) { | 247 | if (error) { |
254 | swsusp_free(); | 248 | swsusp_free(); |
255 | platform_finish(); | ||
256 | goto Thaw; | 249 | goto Thaw; |
257 | } | 250 | } |
258 | 251 | ||
@@ -270,7 +263,6 @@ static int software_resume(void) | |||
270 | enable_nonboot_cpus(); | 263 | enable_nonboot_cpus(); |
271 | Free: | 264 | Free: |
272 | swsusp_free(); | 265 | swsusp_free(); |
273 | platform_finish(); | ||
274 | device_resume(); | 266 | device_resume(); |
275 | resume_console(); | 267 | resume_console(); |
276 | Thaw: | 268 | Thaw: |